ledgerwatch
67b9e5988c
Add preverified hashes for mainnet and ropsten ( #3609 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-24 08:37:20 +00:00
Alex Sharov
f685d6bfe5
logger version up ( #3608 )
...
* snapshots: fix indexing of recently merged range
* logger version up
2022-02-24 15:14:41 +07:00
Alex Sharov
454045185a
snapshots: fix indexing of recently merged range ( #3607 )
2022-02-24 14:19:01 +07:00
Alex Sharov
809cfdcf19
snapshots: indexing of recently merged range ( #3606 )
...
* snapshots: fix indexing of recently merged range
* snapshots: fix indexing of recently merged range
* snapshots: fix indexing of recently merged range
* snapshots: fix indexing of recently merged range
* snapshots: fix indexing of recently merged range
2022-02-24 14:15:03 +07:00
Alex Sharov
b94bc84a3b
snapshots: command to debug retire blocks ( #3603 )
...
* snapshots: command_to_debug_retire
* snapshots: command_to_debug_retire
2022-02-24 11:30:34 +07:00
ledgerwatch
114d2d8f3a
Skip analysis update ( #3594 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-24 10:23:44 +07:00
Alex Sharov
3067cf9999
snapshots: ensure tmpdir exists ( #3602 )
2022-02-24 08:37:16 +07:00
ledgerwatch
17b2a9ba93
Bor fixes ( #3553 )
...
* Integration to work with bor
* Turn off validator set check
* disable verifySeal, add skeleton of postExec stage
* Pass around syscall
* Print
* Print more
* Default heimdall values for integration
* restore contract
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Fix nonce of system contract
* Remove prints
* Revert some more printing
* More fixes
* Print log
* Fix transfer log
* More printing
* More printing
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Fix validaor reward
* Remove printing
* Remove more prints
* Less printing
* Fetch validators from heimdall
* Remove syscall from Seal and CalcDifficulty
* Remove syscall from Prepare
* Print
* Remove DNS discovery
* Print apply snapshot
* Print
* Chunk up snapshot generation
* Chunk up snapshot generation
* Better logs when snapshotting
* Handle parents
* Prevent shadowing of snap
* Fix heimdall fetch
* Logging fixes
* Save generated snapshots
* Add header
* Less logging
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-24 00:03:10 +00:00
ledgerwatch
ee488020dd
Auto detect latest block for optimal use of plain state and state cache ( #3598 )
...
* Auto detect latest block for optimal use of plain state and state cache
* Fix lint
* Fix test
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-23 23:42:14 +00:00
ledgerwatch
542b8827b0
storage override revert support ( #3597 )
...
* storage override revert support
* Fix
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-23 21:53:53 +00:00
Andrew Ashikhmin
37ccbc53d6
Refactor payload building ( #3592 )
...
* Bump MaxPendingPayloads
* UnknownPayload error
* Improve ExchangeTransitionConfigurationV1 comment
* Extract MakeEmptyHeader
* Move MakeEmptyHeader to chain_makers
* Start with empty block as pending payload
* Only build payloads with the right parent hash
* Double check parent hash in SpawnMiningCreateBlockStage
* Simpler error formatting
* ReadHeadBlockHash instead of ReadHeadHeaderHash
* Avoid rebuilding already built blocks
* getPayload should stop the build process
* Tweaking stageLoopIsBusy
* Don't update pending payload after engine_getPayload
2022-02-23 21:27:38 +01:00
battlmonstr
47edcd1b6b
Refactor discovery bootnodes parsing. ( #3596 )
...
Simplify node URL list logic.
Handle errors.
2022-02-23 20:24:13 +00:00
leonardchinonso
269ce45e70
Feature/test event logs ( #3595 )
...
* Adding contract code for event logs subscription
* Saving changes
* gofmt'd files
* Setting up devnet test tool for log subscription testing
* Fixed lint errors
2022-02-23 17:47:01 +00:00
battlmonstr
6fceb72a74
Refactor node private key setup. ( #3593 )
...
Extract private key setup from the global config setup to make it reusable.
Return errors instead of panicing.
* NodeKey() method is removed - it is unused.
2022-02-23 15:05:27 +00:00
Enrique Jose Avila Asapche
5536b70a35
new bootnodes ( #3591 )
2022-02-23 14:18:02 +00:00
Enrique Jose Avila Asapche
198f021f33
Better inputs ( #3590 )
...
* updated tests
* using rpc.Timestamp
* added Timestamp type
2022-02-23 13:52:19 +00:00
alex.sharov
a2feb80c9b
snapshots: fix test
2022-02-23 19:54:58 +07:00
ledgerwatch
7397af57d4
Optimise eth_getStorageAt for current state ( #3580 )
...
* Optimise eth_getStorageAt for current state
* Fix
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-23 09:44:55 +00:00
alex.sharov
258e8d5506
snapshots: fix test
2022-02-23 13:18:00 +07:00
Alex Sharov
0a09187492
Snapshots: more filename fixes ( #3583 )
2022-02-23 13:05:44 +07:00
Alex Sharov
81d51e1589
snapshots: better files sort and filter ( #3582 )
2022-02-23 10:54:35 +07:00
battlmonstr
082194d538
Discovery: add Context to Listen. ( #3577 )
...
Add explicit Context to ListenV4 and ListenV5.
This makes it possible to stop listening by an external signal.
2022-02-22 18:18:43 +00:00
battlmonstr
ffdf02bf29
Makefile: silence a few build messages. ( #3578 )
...
Silence non-important comments in the "make erigon" output.
2022-02-22 18:17:50 +00:00
battlmonstr
4337871f7f
Rename log/logger to follow conventions. ( #3579 )
...
* use "log" for struct fields
* use "logger" for function parameters and local vars
This is a compromise between:
1) using logger := log.New() to avoid aliasing (log := log.New())
2) and keeping it short when logging e.g.: srv.log.Info(...)
2022-02-22 18:17:15 +00:00
battlmonstr
e6c056e666
Rename Datadir/dataDir to follow conventions. ( #3576 )
...
* rename from Datadir to DataDir (functions and public vars)
* rename dataDir to datadir (local variables)
2022-02-22 17:39:48 +00:00
Giulio rebuffo
b49381821f
Fixed get-payload and Hanging ForkChoice ( #3575 )
...
* done
* removed sleep
* f
* errors.Is(err, io.EOF) instead of err == io.EOF
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-02-22 14:47:23 +01:00
ledgerwatch
266625f56a
Fixes to access list and state overrides ( #3570 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-02-22 10:29:02 +00:00
Alex Sharov
20452c3dd6
close channel by producer ( #3569 )
2022-02-22 16:25:02 +07:00
Alex Sharov
ab01d64916
fix close files error on win ( #3572 )
2022-02-22 16:24:33 +07:00
Alex Sharov
b08cb44353
embed rpcdaemon: enable it only by --http flag ( #3574 )
2022-02-22 16:23:54 +07:00
Alex Sharov
fc278327b9
"erigon snapshots recompress" add test ( #3573 )
2022-02-22 16:02:09 +07:00
Alex Sharov
dbd8a93fa8
"erigon snapshots recompress" to apply new compression rules without db access ( #3571 )
...
* mainnet
* save
* save
* save
* save
2022-02-22 15:35:04 +07:00
alex.sharov
f624d1cc22
save
2022-02-22 15:33:07 +07:00
alex.sharov
1b67c64ca3
update sapshot hashes
2022-02-22 15:02:07 +07:00
alex.sharov
d3c8634df8
fix windows tests
2022-02-22 14:44:57 +07:00
Alex Sharov
f5da8833b6
erigon2: exec metric ( #3567 )
2022-02-22 08:55:49 +07:00
Alex Sharov
5cd561bd74
block snapshots merge ( #3558 )
2022-02-22 08:55:24 +07:00
Enrique Jose Avila Asapche
231255f026
correct naming ( #3563 )
2022-02-22 08:42:23 +07:00
Alex Sharov
27b87f44d6
Erigon2: support block snapshots ( #3557 )
...
* save
* erigon
* save
2022-02-22 08:42:12 +07:00
Andrew Ashikhmin
980276c322
Fix coinbase in stage_mining_exec ( #3564 )
...
* Simplify TerminalBlockHash & TerminalBlockNumber
* Simplify FeedHeaderPoS
* More accurate comment
* Relax TerminalBlockHash check
* Extract the sleep hack into stageLoopIsBusy
* Several short naps instead of a single longish sleep
* Fix coinbase in stage_mining_exec
* More orthodox loop
* typo in comment
2022-02-21 18:05:39 +01:00
Giulio rebuffo
7f596e16b3
added sleep ( #3561 )
2022-02-21 14:45:10 +01:00
ledgerwatch
78974d7844
Fix for BSC incorrect execution ( #3560 )
...
* Fix for BSC incorrect execution
* collect skip analysis
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-21 12:42:23 +00:00
Alex Sharov
bed56c6363
Embed rpcdaemon - more cli flags ( #3556 )
...
* more rpc emed flags
* more rpc emed flags
* more rpc emed flags
2022-02-21 09:32:42 +07:00
Alex Sharov
e6c4f0bc2a
lock snapshot dir when flag set ( #3555 )
2022-02-21 09:32:30 +07:00
ledgerwatch
e784f2b809
[erigon2] ETL optimisations ( #3550 )
2022-02-21 09:31:06 +07:00
Enrique Jose Avila Asapche
d12560f1b5
Get block by time stamp ( #3514 )
...
* initial
* binary search through blocks
* snapshot
* returning highest block
* oldest block is now 0
* multiple test written for getBlockByTimeStamp
* retrieved picked block time stamp
* added into erigon_api
* returning pointer
* reverting c37b99b2d7ebc2250b103393378cc4a4f94a6c21
* deleted print
* proper rpc block response
* fixing test
* returning lowest block
* lint
* typo
* fixed test
* returning lowest-1
* skip while loop for times too big or small
* added to readme
* using sort.Search
2022-02-20 10:45:29 +00:00
Enrique Jose Avila Asapche
e348b3ea93
deleted kovan ( #3546 )
2022-02-19 08:15:44 +00:00
ledgerwatch
80d7734ea8
[erigon2] fix history creation (txNum confusion) ( #3547 )
...
* More tracing
* More tracing
* More tracing
* Keep correct txNum
* Keep correct txNum
* Update to tracing
* Off by one
* Print memory info
* Quicker startup
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-02-19 08:15:35 +00:00
bernard-wagner
58d2118c10
rpcdaemon: added debug_traceBlockByNumber and debug_traceBlockByHash ( #3548 )
2022-02-19 08:15:27 +00:00
Giulio rebuffo
5db869236a
Fix Reorg Indexing on Proof-of-Stake ( #3538 )
...
* little fix
* feed pos
2022-02-18 17:03:47 +01:00