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:
Olaoluwa Osuntokun committed 2017-04-16 18:11:45 -07:00
1 parent 83c72eb082
commit feec611531
8 files changed
+109 -65

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ import (
func TestCloseRequestEncodeDecode(t *testing.T) {
cr := &CloseRequest{
ChannelPoint: *outpoint1,
ChanID: ChannelID(revHash),
RequesterCloseSig: commitSig,
Fee: btcutil.Amount(10000),
}