Add rpc request/response for handshake

This commit is contained in:
9seconds
2018-07-01 12:36:30 +03:00
parent 6253648356
commit b9ee1e1857
5 changed files with 112 additions and 7 deletions
+8 -1
View File
@@ -1,5 +1,12 @@
package rpc
import "bytes"
const (
RPCNonceSeqNo = -2
RPCHandshakeSeqNo = -1
)
type RPC interface {
Bytes() []byte
Bytes() *bytes.Buffer
}