aboutsummaryrefslogtreecommitdiffstats
path: root/les/handler.go
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2018-01-27 01:30:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-27 01:30:45 +0800
commit23bca0f374b3e1ccfa19bfeb86d06a0aca82184b (patch)
tree1bc753c7f9b3170fef68f37484d8572fb74c0087 /les/handler.go
parent367c329b88617a2831a9fe20f7b47bb6ab7e255d (diff)
downloadgo-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar.gz
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar.bz2
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar.lz
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar.xz
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.tar.zst
go-tangerine-23bca0f374b3e1ccfa19bfeb86d06a0aca82184b.zip
les: fix TxStatusMsg RLP coding (#15974)
Diffstat (limited to 'les/handler.go')
-rw-r--r--les/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/les/handler.go b/les/handler.go
index d627c3e18..57657e84f 100644
--- a/les/handler.go
+++ b/les/handler.go
@@ -1014,7 +1014,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
for i, stat := range stats {
if stat.Status == core.TxStatusUnknown {
if errs := pm.txpool.AddRemotes([]*types.Transaction{req.Txs[i]}); errs[0] != nil {
- stats[i].Error = errs[0]
+ stats[i].Error = errs[0].Error()
continue
}
stats[i] = pm.txStatus([]common.Hash{hashes[i]})[0]
@@ -1055,7 +1055,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
p.Log().Trace("Received tx status response")
var resp struct {
ReqID, BV uint64
- Status []core.TxStatus
+ Status []txStatus
}
if err := msg.Decode(&resp); err != nil {
return errResp(ErrDecode, "msg %v: %v", msg, err)