lnwire+peer: implement new ping/pong messages and behavior
This commit implements the new ping/pong messages along with their new behavior. The new set of ping/pong messages allow clients to generate fake cover traffic as the ping messages tells the pong message how many bytes to included and can also be padded itself.
This commit is contained in:
8 files changed
+109
-65
No files matched your search
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func TestCloseRequestEncodeDecode(t *testing.T) {
|
||||
cr := &CloseRequest{
|
||||
ChannelPoint: *outpoint1,
|
||||
ChanID: ChannelID(revHash),
|
||||
RequesterCloseSig: commitSig,
|
||||
Fee: btcutil.Amount(10000),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user