ledgerwatch
c6975414e8
[WIP] Warmup the state bucket for HDD sync ( #1032 )
...
* Warmup
* Log the warmup
* Make warmup interruptible
* Make warmup a command line option for HDD
* Activate hdd flag
2020-09-02 12:24:27 +01:00
Giulio rebuffo
cad769ee67
Websocket work over json rpc ( #1030 )
...
* added ws support
* fixed log
* ws over json rpc
* lint
* fixed bad req
2020-09-02 06:56:48 +01:00
Giulio rebuffo
050ef8773f
fixed chainconfig ( #1027 )
2020-09-01 20:44:05 +01:00
Giulio rebuffo
b47b8cb989
Ws daemon ( #1026 )
...
* added ws support
* fixed log
2020-09-01 17:00:47 +01:00
ledgerwatch
d8c0c16e40
Bad rewind issues fix ( #1024 )
...
* Unwind over unwound, no rollbacks
* Exclude bits only for StagedSync
* Nitpick
2020-09-01 12:50:36 +01:00
Alex Sharov
f19bb0a345
simplify cursor.Next and cursor.First implementation ( #1019 )
2020-09-01 12:50:23 +01:00
ledgerwatch
c06dbdadf9
Use Append for changesets and receipts ( #1018 )
...
* Use Append for changesets and receipts
* Fix lint
* Delete all receipts on unwind
* Fix lint
* Fix unwind keys for changeset
* Fix test
* Use writeReceipts flag
* Revert to Append
* Delete receipts too when resetting
2020-09-01 07:48:25 +01:00
ledgerwatch
1a0e9275e1
Headers PoC - intermediate changes ( #1016 )
...
* First algorithm
* Update doc
* Second algorithm implemented
* Prepend (unfinished)
* More on prepend
* More fixes
* Change CalcDifficulty interface
* fix make test
* Fix formatting
* Another test
* More on Preprend
* Another test for Prepend
* More tests for Prepend
* More tests for Prepend
* Move files to turbo
* Add another test for Prepend
* Started adding Append algorithm
* More work on Append
* Start changing the terminology
* Split trees into segments
* More fixes
* Fix compilation
* Connect
* FindAnchors, FindTip
* Tip has anchor and not anchorParent field
* Remove Prepend and Append
* Add Connect
* NewAnchor algorithm
* More to recovery from files
* Add more to AddAnchor
* Request more headers
* Header fix-sizes serialisation
* Upgrade CI to 1.15
* Fix lint
* Fix lint
* replace RLP with fixed-sized serialisation
* Fix lint
* More algos
* Fix lint
2020-08-31 06:27:51 +01:00
ledgerwatch
8a3dad0914
Use Finish stage for eth_syncing ( #1017 )
2020-08-31 06:27:35 +01:00
Igor Mandrigin
7bc892e886
Prefetch block bodies ( #1013 )
...
* prefetched blocks 1
* fixups
* fix logs
* fixups
* linters
* remove logs
* fix an NPE in tests
* setup the correct origin
* run blocks on prefetched bodies
* fix log
* smaller cache size
2020-08-30 18:34:40 +01:00
Alex Sharov
ada52a8cd5
indices.md ( #1010 )
...
* init
* up
* link to db walkthrough
2020-08-30 18:34:29 +01:00
Alex Sharov
49351b0091
KV: to support multiple databases and multiple set of buckets ( #1002 )
...
* don't use global variables
* up deps
* clean
* use joined flags
* use single non-global buckets config
* clean
* copy map
* fix tests
* fix tests
* clean
* clean
2020-08-30 18:34:18 +01:00
Igor Mandrigin
a1a7f6607a
rpcdaemon, stagedsync: make sure we update the current block number after a sync cycle ( #1015 )
...
* rpcdaemon, stagedsync: make sure we update the current block number after a sync cycle
fixes #1014
* linters
2020-08-30 17:51:06 +01:00
Igor Mandrigin
5365b8e402
stagedsync: create a StagedSync object, initialize in ProtocolManager ( #1012 )
...
* stagedsync: create a StagedSync object, initialize in ProtocolManager
* fix compile error
2020-08-30 13:24:58 +02:00
ledgerwatch
961b1d57c4
Remove fdlimit - ramping up open file handles limit ( #1011 )
2020-08-30 09:01:39 +01:00
Chase Wright
f2902bb47c
Update totalDifficulty from Big to hexutil.Big ( #1009 )
...
* Update totalDifficulty from Big to hexutil.Big
2020-08-30 10:55:31 +07:00
ledgerwatch
22dc832d92
RPC method fixes ( #1007 )
...
* Fix some RPC issues
* Fudge the getBlockByNumber
* Add two more PRC methods
* Fix rpc tests
2020-08-29 22:28:09 +01:00
Giulio rebuffo
33316fec6a
Implemented trace_filter ( #998 )
...
* added message for --rpc
* more messages for other unused flags
* implemented trace_filter
* lint
* cleanup
* cleanup
2020-08-29 16:50:24 +01:00
Chase Wright
40b277aad4
Update README.md ( #1004 )
...
* Add net_peerCount and a note about its non-standard behavior
2020-08-29 16:37:05 +02:00
Igor Mandrigin
300a515bff
Merge pull request #1003 from ledgerwatch/geth-1.9.20
...
Geth 1.9.20
2020-08-29 16:27:32 +02:00
Igor Mandrigin
9e3d4b8b2a
linters
2020-08-29 15:43:33 +02:00
Igor Mandrigin
7396ccc37e
linters
2020-08-29 15:37:27 +02:00
Igor Mandrigin
15e86b4b34
fix compilation issue
2020-08-29 15:30:06 +02:00
Igor Mandrigin
637493e8f1
Merge branch 'master' into geth-1.9.20
2020-08-29 15:28:03 +02:00
Igor Mandrigin
1e69e76f6d
fix tests
2020-08-29 15:15:37 +02:00
Igor Mandrigin
bd61245ece
test fixups
2020-08-29 14:35:39 +02:00
Igor Mandrigin
4b4326020c
geth compiles
2020-08-29 14:03:41 +02:00
Igor Mandrigin
948cd29be7
fixes
2020-08-29 13:43:44 +02:00
Igor Mandrigin
78e466d06a
fix imports
2020-08-29 13:31:46 +02:00
Felix Lange
e3cb3dc09c
params: release Geth v1.9.20
...
# Conflicts:
# params/version.go
2020-08-29 13:29:32 +02:00
Péter Szilágyi
a1c28a0178
params: update CHTs for v1.9.20 release
2020-08-29 13:28:59 +02:00
Shude Li
1fc802e7a7
graphql: add support for retrieving the chain id ( #21451 )
2020-08-29 13:28:52 +02:00
Péter Szilágyi
0dfcc3f6f8
core/rawdb: only complain loudly if truncating many items
...
# Conflicts:
# core/rawdb/freezer_table.go
2020-08-29 13:28:46 +02:00
timcooijmans
b9bcd407d5
p2p/discover: avoid dropping unverified nodes when table is almost empty ( #21396 )
...
This change improves discovery behavior in small networks. Very small
networks would often fail to bootstrap because all member nodes were
dropping table content due to findnode failure. The check is now changed
to avoid dropping nodes on findnode failure when their bucket is almost
empty. It also relaxes the liveness check requirement for FINDNODE/v4
response nodes, returning unverified nodes as results when there aren't
any verified nodes yet.
The "findnode failed" log now reports whether the node was dropped
instead of the number of results. The value of the "results" was
always zero by definition.
Co-authored-by: Felix Lange <fjl@twurst.com>
# Conflicts:
# p2p/discover/v4_udp.go
2020-08-29 13:28:18 +02:00
Péter Szilágyi
476cb0c4c1
core/state/snapshot: reduce disk layer depth during generation
...
# Conflicts:
# core/state/snapshot/generate.go
# core/state/snapshot/journal.go
# core/state/snapshot/snapshot.go
2020-08-29 13:26:41 +02:00
Martin Holst Swende
fa3ee4bf6b
eth: utilize sync bloom for getNodeData ( #21445 )
...
* eth/downloader, eth/handler: utilize sync bloom for getNodeData
* trie: handle if bloom is nil
* trie, downloader: check bloom nilness externally
# Conflicts:
# eth/handler.go
2020-08-29 13:26:15 +02:00
Martin Holst Swende
991a1c063d
core: do less lookups when writing fast-sync block bodies ( #21468 )
2020-08-29 13:25:33 +02:00
gary rong
550bd11f9d
core, eth, les, trie: add a prefix to contract code ( #21080 )
...
# Conflicts:
# cmd/evm/internal/t8ntool/execution.go
# consensus/clique/clique.go
# consensus/ethash/consensus.go
# core/block_validator.go
# core/blockchain.go
# core/blockchain_test.go
# core/genesis.go
# core/rawdb/accessors_indexes_test.go
# core/rawdb/accessors_metadata.go
# core/rawdb/chain_iterator_test.go
# core/rawdb/database.go
# core/rawdb/schema.go
# core/state/database.go
# core/state/iterator_test.go
# core/state/statedb.go
# core/state/sync.go
# core/state/sync_test.go
# core/tx_pool_test.go
# core/types/block_test.go
# core/types/derive_sha.go
# eth/downloader/downloader.go
# eth/downloader/queue.go
# eth/downloader/statesync.go
# eth/fetcher/block_fetcher.go
# eth/fetcher/block_fetcher_test.go
# eth/handler.go
# les/odr_requests.go
# les/server_handler.go
# light/odr.go
# light/odr_test.go
# light/trie.go
# miner/worker.go
# trie/database.go
# trie/secure_trie.go
# trie/sync.go
# trie/sync_bloom.go
# trie/sync_test.go
2020-08-29 13:25:20 +02:00
Martin Holst Swende
b670cc44a5
eth/downloader: fix rollback issue on short chains
2020-08-29 12:30:17 +02:00
Marius van der Wijden
f6ba57ebc1
metrics: zero temp variable in updateMeter ( #21470 )
...
* metrics: zero temp variable in updateMeter
Previously the temp variable was not updated properly after summing it to count.
This meant we had astronomically high metrics, now we zero out the temp whenever we
sum it onto the snapshot count
* metrics: move temp variable to be aligned, unit tests
Moves the temp variable in MeterSnapshot to be 64-bit aligned because of the atomic bug.
Adds a unit test, that catches the previous bug.
2020-08-29 12:30:07 +02:00
Péter Szilágyi
f734b7a0eb
travis, dockerfile, appveyor, build: bump to Go 1.15
...
# Conflicts:
# Dockerfile
# Dockerfile.alltools
# build/checksums.txt
2020-08-29 12:29:55 +02:00
Péter Szilágyi
bfac425c87
core: define and test chain rewind corner cases ( #21409 )
...
* core: define and test chain reparation cornercases
* core: write up a variety of set-head tests
* core, eth: unify chain rollbacks, handle all the cases
* core: make linter smile
* core: remove commented out legacy code
* core, eth/downloader: fix review comments
* core: revert a removed recovery mechanism
# Conflicts:
# core/blockchain.go
# core/blockchain_test.go
# core/headerchain.go
# core/rawdb/database.go
# core/rawdb/freezer.go
# core/rawdb/schema.go
# eth/downloader/downloader.go
# eth/sync.go
# trie/sync.go
2020-08-29 12:29:00 +02:00
Alex Sharov
46a5d9c275
clean ( #1001 )
2020-08-29 17:07:12 +07:00
Alex Sharov
ca0bc897dc
clear logs ( #1000 )
2020-08-29 17:06:53 +07:00
Alex Sharov
5ce73d438a
fix integration ( #999 )
2020-08-29 15:27:20 +07:00
Alex Sharov
8c9a55bb21
[To test on HDD] Write changesets to tx instead of mutation ( #978 )
...
* use mutation over tx
* clear
* add .CommitAndBegin() method
* multip put 2
* right sorting
* write non-random things to tx
* write non-random things to tx
* disable multi put 2
* clean
* clean
* remove multiput2
* clean
* clean
* clean
* clean
* clean
* add receipts
2020-08-29 08:32:51 +01:00
Alex Sharov
07ca5c643a
eth_syncing ( #991 )
...
* eth_syncing
* linters
* fix readme
* cleanup cli params
* go mod tidy
* remove memsize ui dep
* remove bloomfilter
* implement net_peerCount
* remove legacy flags
2020-08-29 08:24:50 +01:00
Alex Sharov
bdb2e354ce
restapi_to_follog_geth_cli_variables ( #993 )
2020-08-28 11:27:56 +01:00
ledgerwatch
335aedc7e3
Cut down the stateGrowth generation code ( #973 )
...
* Cut down the stateGrowth generation
* Fix NPE
* Fix for lastTimestamp
* Adjust to the current state
* Potential fix
* Fix for shorter keys in the state
* Extract code
* Iterate over code
2020-08-28 10:31:37 +01:00
Alex Sharov
d30df505c8
Don't read cwd in blockchain validator, remove debug code ( #992 )
...
* print cwd
* don't read cwd, remove debug code
* oops, overdelete
* clean
2020-08-28 10:30:22 +01:00