Commit Graph

11347 Commits

Author SHA1 Message Date
ledgerwatch
244d70fb9c
Further fixes for the no-mod-root (#186)
* Further fixes

* Repace 1000 with a symbol
2019-11-21 15:56:39 +00:00
Andrew Ashikhmin
1c0cf9be72
BadgerDB: MultiWalk & some other APIs, command line flag, scaffolding for testing (#183)
* BadgerDatabase MemCopy

* fix err shadowing

* BadgerDatabase MultiPut & NewBatch

* Remove goOn from MultiWalk & MultiWalkAsOf

* BadgerDatabase MultiWalk. Scaffolding for testing Badger in blockchain_test

* Badger Flag

* fix error logging

* Split IdealBatchSize between BoltDB and BadgerDB

* NewEphemeralBadger
2019-11-21 16:12:38 +01:00
Igor Mandrigin
aa71b298cc
Write tape stats to a csv file. (#185) 2019-11-21 15:09:21 +01:00
Igor Mandrigin
f97578bb04
Use ethdb.Database interface to generate snapshots. (#182) 2019-11-21 14:57:44 +01:00
Igor Mandrigin
f4cda8ba4c
Fix snapshot saving and add an interval setting. (#181) 2019-11-21 14:36:24 +01:00
Giulio rebuffo
21c981eb84 HexToQuad fixed in trie/visual.go (#173) 2019-11-19 07:48:08 +00:00
ledgerwatch
c187d80152
Preparations for computing root without modifying the trie (#172)
Preparations for computing root without modifying the trie
2019-11-15 22:48:49 +00:00
Igor Mandrigin
7fd4b0431b
refactor trie package a bit (#171)
* Refactor `structural*` files.

* some refactor

* dry hashbuilder a bit

* rename constants back to the magic rlp values
2019-11-15 17:50:16 +01:00
ledgerwatch
f70252e121
Merge pull request #167 from ledgerwatch/statelesss_resolver
Prine tries (in memory) in the same cycle as db commits
2019-11-15 16:02:51 +00:00
Evgeny Danilenko
03dd91d4e6
Merge pull request #158 from ledgerwatch/fix-data-races
Fix data races and goroutine leaks
2019-11-15 17:25:32 +03:00
Evgeny Danilenko
cdd0b95d5a
Merge pull request #169 from ledgerwatch/red-tests-#111
Tests for inserting incorrect root hash blocks
2019-11-15 17:25:05 +03:00
Evgeny Danienko
653d952722 fix dep 2019-11-15 17:13:36 +03:00
Igor Mandrigin
50bb08d08d
Don't store RLPs in valueNodes (except tests). 2019-11-15 13:31:09 +01:00
Evgeny Danienko
3cc627421f Merge branch 'master' into fix-data-races 2019-11-15 15:22:22 +03:00
Evgeny Danienko
112bc52b2c linters 2019-11-15 15:18:45 +03:00
Evgeny Danienko
700e7b89ed fix linters 2019-11-15 15:08:37 +03:00
Andrew Ashikhmin
77974a0d24
Merge pull request #165 from ledgerwatch/badger2
Start integrating Badger DB
2019-11-15 11:50:58 +01:00
Evgeny Danienko
5718aa5430 fmt 2019-11-14 19:57:40 +03:00
Evgeny Danienko
c34328824d update notify version 2019-11-14 19:56:38 +03:00
Evgeny Danienko
abff6b263a add check 2019-11-14 19:14:25 +03:00
andrew
0eb9d3915b Add method stubs to BadgerDatabase so it formally implements the Database interface 2019-11-14 13:00:38 +01:00
Igor Mandrigin
00074e0ed7 Don't store RLPs in valueNodes (except tests). 2019-11-13 20:08:20 +01:00
andrew
62d36ada39 BadgerDatabase Walk 2019-11-13 17:43:26 +01:00
Evgeny Danienko
0e2a533a68 fmt 2019-11-13 14:24:27 +03:00
Evgeny Danienko
6aa8623f0f fmt 2019-11-13 14:19:55 +03:00
Evgeny Danienko
c1b761778c fmt 2019-11-13 14:12:58 +03:00
Evgeny Danienko
e832e73c80 fmt 2019-11-13 14:04:10 +03:00
Evgeny Danienko
d8ebe41eb3 Merge branch 'master' into red-tests-#111 2019-11-13 13:56:30 +03:00
Evgeny Danienko
467805344c green tests 2019-11-13 13:52:03 +03:00
Alexey Akhunov
540eb04273 Prine tries (in memory) in the same cycle as db commits, commit before closing db 2019-11-13 02:26:07 +00:00
andrew
109217a9da BadgerDatabase Has 2019-11-12 11:40:46 +01:00
andrew
81d0d84ed4 Merge branch 'master' into badger2 2019-11-11 21:06:48 +01:00
andrew
6352fc024c Don't expose Bolt DB in the interface 2019-11-11 20:28:27 +01:00
ledgerwatch
103deffd86
Merge pull request #164 from ledgerwatch/downloader2
Fix typo in download-only flag
2019-11-11 19:28:03 +00:00
Alexey Akhunov
e09fac4a47 Fix typo in download-only flag 2019-11-11 19:17:39 +00:00
andrew
4a9faff349 Delete chain_indexer_test altogether 2019-11-11 20:12:19 +01:00
andrew
404c5896a3 Disable TestChainIndexerWithChildren as unstable 2019-11-11 20:04:43 +01:00
ledgerwatch
0434cfbb59
Merge pull request #161 from ledgerwatch/downloader
Downloader flag to quickly download the blockchain without processing blocks
2019-11-11 17:13:38 +00:00
Alexey Akhunov
a1f599c2ee Fixes from review 2019-11-11 17:03:39 +00:00
Alexey Akhunov
14b45ea50b Downloader flag 2019-11-11 16:58:50 +00:00
andrew
ddb34f91ca Raise a limit in TestClientNotificationStorm to make it more stable 2019-11-11 17:58:19 +01:00
andrew
8cb8544c45 Merge branch 'master' into badger2 2019-11-11 17:12:28 +01:00
andrew
a6d0e795c0 BadgerDatabase GetAsOf 2019-11-11 17:02:37 +01:00
Evgeny Danienko
28d3dfb9d0 stable green tests 2019-11-11 18:21:07 +03:00
Igor Mandrigin
fae6fe0775
Merge pull request #156 from ledgerwatch/issue-148
Use `GenStructStep` from `structural_2` in `DeriveSha`.
2019-11-11 13:24:46 +01:00
Evgeny Danienko
bdac3ff1d6 refactor transaction tests 2019-11-08 17:55:56 +03:00
Evgeny Danienko
e42921786a green transaction tests 2019-11-08 13:21:44 +03:00
Evgeny Danienko
11fe50f101 red test 2019-11-07 19:20:15 +03:00
Evgeny Danienko
5b4a371489 fmt 2019-11-07 19:01:58 +03:00
Evgeny Danienko
c0bcee68cc Merge branch 'master' into fix-data-races 2019-11-07 18:59:44 +03:00