diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-25 17:18:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 17:18:44 +0800 |
commit | 0095531a58772b1f5bd1547169790dbde84ec78a (patch) | |
tree | 91b9e56dbcb9afe4058c0f41f33ebc7812201abc /les/protocol.go | |
parent | ca376ead88a5a26626a90abdb62f4de7f6313822 (diff) | |
download | dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.gz dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.bz2 dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.lz dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.xz dexon-0095531a58772b1f5bd1547169790dbde84ec78a.tar.zst dexon-0095531a58772b1f5bd1547169790dbde84ec78a.zip |
core, eth, les: fix messy code (#15367)
* core, eth, les: fix messy code
* les: fixed tx status test and rlp encoding
* core: add a workaround for light sync
Diffstat (limited to 'les/protocol.go')
-rw-r--r-- | les/protocol.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/les/protocol.go b/les/protocol.go index 146b02030..05e6654d6 100644 --- a/les/protocol.go +++ b/les/protocol.go @@ -27,6 +27,7 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/secp256k1" "github.com/ethereum/go-ethereum/rlp" @@ -219,3 +220,9 @@ type CodeData []struct { } type proofsData [][]rlp.RawValue + +type txStatus struct { + Status core.TxStatus + Lookup *core.TxLookupEntry + Error error +} |