Docs.rs
  • lightning-signer-core-0.1.0-5
    • lightning-signer-core 0.1.0-5
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • devrandom
    • ksedgwic
    • Dependencies
      • anyhow ^1.0 normal
      • backtrace ^0.3 normal
      • bitcoin ^0.27 normal
      • core2 ^0.3.0 normal
      • env_logger ^0.9.0 normal
      • hashbrown ^0.9 normal
      • lightning ^0.0.104 normal
      • log ^0.4.14 normal
      • rand ^0.4 normal
      • scopeguard ^1.1.0 normal
      • tonic ^0.4 normal
      • paste ^1.0 dev
      • tempfile ^3.2.0 dev
      • test-env-log ^0.2.7 dev
    • Versions
    • 100% of the crate is documented
  • Go to latest stable release
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Module functional_test_utils

  • Structs
  • Constants
  • Functions
logo
Change settings

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
tip_for_node
update_nodes_with_chan_announce