diff options
Diffstat (limited to 'lds/peer.go')
-rw-r--r-- | lds/peer.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lds/peer.go b/lds/peer.go index b41824ad7..a5dcf0421 100644 --- a/lds/peer.go +++ b/lds/peer.go @@ -195,6 +195,10 @@ func (p *peer) SendBlockBodiesRLP(reqID, bv uint64, bodies []rlp.RawValue) error return sendResponse(p.rw, BlockBodiesMsg, reqID, bv, bodies) } +func (p *peer) SendGovState(reqID, bv uint64, govState *types.GovState) error { + return sendResponse(p.rw, GovStateMsg, reqID, bv, govState) +} + // SendCodeRLP sends a batch of arbitrary internal data, corresponding to the // hashes requested. func (p *peer) SendCode(reqID, bv uint64, data [][]byte) error { @@ -243,6 +247,11 @@ func (p *peer) RequestBodies(reqID, cost uint64, hashes []common.Hash) error { return sendRequest(p.rw, GetBlockBodiesMsg, reqID, cost, hashes) } +func (p *peer) RequestGovStateByHash(reqID, cost uint64, hash common.Hash) error { + p.Log().Debug("Fetching one gov state", "hash", hash) + return sendRequest(p.rw, GetGovStateMsg, reqID, cost, hash) +} + // RequestCode fetches a batch of arbitrary data from a node's known state // data, corresponding to the specified hashes. func (p *peer) RequestCode(reqID, cost uint64, reqs []CodeReq) error { |