rpc: give each call a dedicated Response struct, add basic test

This commit is contained in:
Ethan Buchman
2015-03-25 18:06:57 -07:00
parent 87e1f76324
commit d2724c9731
9 changed files with 191 additions and 45 deletions

View File

@ -144,6 +144,10 @@ func (n *Node) StartRpc() {
rpc.StartHTTPServer()
}
func (n *Node) Switch() *p2p.Switch {
return n.sw
}
func (n *Node) ConsensusState() *consensus.ConsensusState {
return n.consensusState
}