les, light: fix weird merge errors

This commit is contained in:
Péter Szilágyi 2016-11-30 12:40:01 +02:00
parent f8be5d9367
commit cd4c23e9ba
No known key found for this signature in database
GPG key ID: 119A76381CCB7DD2
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ func testGetProofs(t *testing.T, protocol int) {
for i := uint64(0); i <= bc.CurrentBlock().NumberU64(); i++ {
header := bc.GetHeaderByNumber(i)
root := header.Root
trie, _ := trie.New(root, db)
trie, _ := trie.New(root, db, 0)
for _, acc := range accounts {
req := ProofReq{

View file

@ -73,7 +73,7 @@ func (odr *testOdr) Retrieve(ctx context.Context, req OdrRequest) error {
case *ReceiptsRequest:
req.Receipts = core.GetBlockReceipts(odr.sdb, req.Hash, core.GetBlockNumber(odr.sdb, req.Hash))
case *TrieRequest:
t, _ := trie.New(req.Id.Root, odr.sdb)
t, _ := trie.New(req.Id.Root, odr.sdb, 0)
req.Proof = t.Prove(req.Key)
case *CodeRequest:
req.Data, _ = odr.sdb.Get(req.Hash[:])