-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync upstream through July 22, 2015 #164
Conversation
When trickling inv's to peers, allocate for the number of inv's in the queue instead of the default 1000. This should save on memory.
This commit corrects the JSON-RPC API doc return to overview links for the Websocket Extension Method Details section.
This commit correctly replaces persistent peers that are being retried in the list of persistent peers so it will continue to be retried as intended. Also, limit the maximum retry interval for persistent peers to 5 minutes. Fixes btcsuite#463.
This mimics Bitcoin Core commit a1ba0778dd3c784046dea334e5d39f37eca264f7
At the current time, there is no difference between the wire encoding at protocol version 0 and the stable long-term storage format. These methods are simply for consistency with the other types.
@@ -216,14 +217,15 @@ func TestBlockHeaderWire(t *testing.T) { | |||
continue | |||
} | |||
|
|||
b, err := wire.TstBytesBlockHeader(test.in) | |||
buf.Reset() | |||
err = test.in.BtcEncode(&buf, pver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably drop BtcEncode at some point for something more generic... (ccEncode??) But not a consideration for current PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that would make sense. I suspect MsgEncode
/MsgDecode
would make the most sense given it is part of the Message
interface.
Looks good to me. |
tACK |
No description provided.