Mock Network Parameters Storage
Constructors
Properties
Functions
Return parameters epoch for the given parameters hash. Null if there are no parameters for this hash in the storage and we are unable to get them from network map.
Returns the NotaryInfo for a notary party in the current or any historic network parameter whitelist, or null if not found.
Checks if parameters with given hash are in the storage.
Return the network parameters with the given hash, or null if it doesn't exist.
Return signed network parameters with certificate for the given hash. Null if there are no parameters for this hash in the storage. (No fallback to network map.)
Save signed network parameters data. Internally network parameters bytes should be stored with the signature. It's because of ability of older nodes to function in network where parameters were extended with new fields. Hash should always be calculated over the serialized bytes.
Set information that given parameters are current parameters for the network.