Struct ckb_testkit::Node [−][src]
pub struct Node { /* fields omitted */ }
Implementations
pub fn build_according_to_instructions(
&self,
target_height: BlockNumber,
instructions: Vec<BuildInstruction>
) -> Result<(), String>
Return the cloned node with node_name
.
Get the transaction cycles via RPC dry_run_transaction
.
NOTE: Transaction runs on different VM comsumes different cycles.
Therefore, if a transaction triggers a script with ScriptHashType::Type
,
its transaction cycles depend on whether the node is fork2021 activated.
P2p listen address, without node_id. E.g. “/ip4/0.0.0.0/tcp/9003”
P2p listen address with node_id. E.g. “/ip4/0.0.0.0/tcp/9003/p2p/QmaPV8Ly4YZe2L8B11b2Rvy8YLsvKo4TtfuqhJQzfPcK5T”
The states of chain and txpool are updated asynchronously. Which means that the chain has updated to the newest tip but txpool not. get_tip_tx_pool_info wait to ensure the txpool update to the newest tip as well.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more