EmulatorGossipNet

Undocumented in source.

Constructors

this
this(Pubkey mypk, Duration duration)
Undocumented in source.

Members

Functions

add_channel
void add_channel(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
gossip
const(Pubkey) gossip(const(ChannelFilter) channel_filter, const(SenderCallBack) sender)
Undocumented in source. Be warned that the author may not have intended to support it.
isValidChannel
bool isValidChannel(const(Pubkey) channel)
Undocumented in source. Be warned that the author may not have intended to support it.
remove_channel
void remove_channel(Pubkey channel)
Undocumented in source. Be warned that the author may not have intended to support it.
select_channel
const(Pubkey) select_channel(const(ChannelFilter) channel_filter)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(Pubkey channel, const(HiRPC.Sender) sender)
Undocumented in source. Be warned that the author may not have intended to support it.
start_listening
void start_listening()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

time
const(sdt_t) time [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_current_time
sdt_t _current_time;
Undocumented in source.
_send_node_id
uint _send_node_id;
Undocumented in source.
mypk
immutable(Pubkey) mypk;
Undocumented in source.
random
Random random;
Undocumented in source.

Inherited Members

From GossipNet

ChannelFilter
alias ChannelFilter = bool delegate(const(Pubkey) channel) @(safe)
Undocumented in source.
SenderCallBack
alias SenderCallBack = const(HiRPC.Sender) delegate() @(safe)
Undocumented in source.
time
const(sdt_t) time()
Undocumented in source.
isValidChannel
bool isValidChannel(const(Pubkey) channel)
Undocumented in source.
add_channel
void add_channel(const(Pubkey) channel)
Undocumented in source.
remove_channel
void remove_channel(const(Pubkey) channel)
Undocumented in source.
gossip
const(Pubkey) gossip(const(ChannelFilter) channel_filter, const(SenderCallBack) sender)
Undocumented in source.
select_channel
const(Pubkey) select_channel(const(ChannelFilter) channel_filter)
Undocumented in source.

Meta