Module lightning_signer::util::functional_test_utils[][src]

Expand description

A bunch of useful utilities for building networks of nodes and exchanging messages between nodes for functional tests.

Structs

Node
NodeCfg
SendEvent
TestBroadcaster
TestChanMonCfg

Constants

CHAN_CONFIRM_DEPTH
TEST_FINAL_CLTV

Functions

claim_payment
claim_payment_along_route
close_channel
confirm_transaction

Mine the given transaction in the next block and then mine CHAN_CONFIRM_DEPTH - 1 blocks on top, giving the given transaction CHAN_CONFIRM_DEPTH confirmations.

confirm_transaction_at

Mine the given transaction at the given height, mining blocks as required to build to that height

connect_block
connect_blocks
create_announced_chan_between_nodes
create_announced_chan_between_nodes_with_value
create_chan_between_nodes
create_chan_between_nodes_with_value
create_chan_between_nodes_with_value_a
create_chan_between_nodes_with_value_b
create_chan_between_nodes_with_value_confirm
create_chan_between_nodes_with_value_confirm_first
create_chan_between_nodes_with_value_confirm_second
create_chan_between_nodes_with_value_init
create_chanmon_cfgs
create_funding_transaction
create_network
create_node_chanmgrs
disconnect_block
dump_node_txn
dump_txn
get_announce_close_broadcast_events
mine_transaction

Mine a signle block containing the given transaction

pass_along_path
pass_along_route
route_payment
send_along_route
send_along_route_with_secret
send_payment
update_nodes_with_chan_announce