pub fn upsert_metadata<T: Config>(
metadata: T::BlockProducerMetadata,
signature: CrossChainSignature,
cross_chain_pub_key: CrossChainPublicKey,
valid_before: u64,
)
Expand description
Inserts or updates metadata for the block producer identified by cross_chain_pub_key
.
Holds a constant amount from the caller’s account as a deposit for including metadata on the chain
when first inserted. Subsequent updates will not require new deposits. Existing metadata can be
updated only using the same Partner Chain account that created it.
Arguments:
metadata
: new metadata valuesignature
: a signature of [MetadataSignedMessage] created from this inherent’s arguments and the current Partner Chain’s genesis UTXO, created using the private key corresponding tocross_chain_pub_key
cross_chain_pub_key
: public key identifying the block producervalid_before
: timestamp in seconds up to which the signature is considered valid
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::upsert_metadata
.