NodeDeleteTransaction

Type Alias NodeDeleteTransaction 

Source
pub type NodeDeleteTransaction = Transaction<NodeDeleteTransactionData>;
Expand description

A transaction body to delete a node from the network address book.

This transaction body SHALL be considered a “privileged transaction”.

  • A NodeDeleteTransactionBody MUST be signed by the governing council.
  • Upon success, the address book entry SHALL enter a “pending delete” state.
  • All address book entries pending deletion SHALL be removed from the active network configuration during the next freeze transaction with the field freeze_type set to PREPARE_UPGRADE.
  • A deleted address book node SHALL be removed entirely from network state.
  • A deleted address book node identifier SHALL NOT be reused.

§Record Stream Effects

Upon completion the “deleted” node_id SHALL be in the transaction receipt.

Aliased Type§

pub struct NodeDeleteTransaction { /* private fields */ }

Implementations§

Source§

impl NodeDeleteTransaction

Source

pub fn get_node_id(&self) -> u64

Returns the node ID associated with the node to be deleted.

Source

pub fn node_id(&mut self, node_id: u64) -> &mut Self

Sets the node ID associated with the node to be deleted.