* WIP: eth: replace maps with etl.Collectors
* WIP: eth: replace maps with etl.Collectors in pruneOldLogChunks
* WIP: eth: use appendBuffer to avoid duplicates
* WIP: eth: replace with oldestEntrySortableBuffer
* refactored request download
* keeping track of missing snapshots
* using slice mergeRange
* request snapshots on reopen
* passing arguments
* passed in var
* Revert "passed in var"
This reverts commit 90478978dfa9f2a6dd5b1b051fc1d3f9e5f7a9c5.
* Revert "passing arguments"
This reverts commit 1e39c4152003796f6ff0bcfc188512d4a43bd18d.
* Revert "request snapshots on reopen"
This reverts commit d40212b973bc15db2b25cc1b0abb22051a3debb1.
* added downloadRequest
;
* downloading missing headers at start up
* there shouldnt be an error anymore
* not using nil;
;
* checking if we build torrent file
* only if torrentHash != nil
* clearer separation of scenario
* refactored Download
* comments
* ops
* not using magnet with empty hash
* moved log to top
* ops
* logs
* log warns
* bumped up log lvl
* log
* Add eth_getBalanceChangesInBlock RPC endpoint
* Fix lints
* added assertion for one test
* moved balance change api from eth to erigon
Co-authored-by: fatemebagherii <fa.bagheri.a@gmail.com>
* gas price initial unit tests
* tweak(makefile): gas price test timeout increase
increase test timeout in Makefile to 50s from 30s
to cater for increased test time unit testing
gas price logic.
Co-authored-by: Scott Fairclough <scott@hexosoft.co.uk>
* Add borTx to GetBlockByHash; ensure borTxs have hashes; don't try to derive sender for borTxs
* Surface borReceipt logs in eth_getLogs
* Check for existence of borReceipt before synthesizing a borTx
* Add eth/67
* Listen to eth/66 on a separate port
* Fix compilation error
* Fix cfg66.ListenAddr
* Update erigon ports in README
* Expose port 30304 in docker
* P2pProtocolVersionFlag instead of second sentry
* Remove "66 by default" from usage
* Small comment
* evm t8n tool to use ExecuteBlockEphemerally api (#4512)
* fix to set V, R, S in legacy transaction
* fix to dump post-execution alloc for evm t8n
* close tx in evm t8n
* populate current difficulty and gas used in output result
- update the ExecutionResult to include corresponding info (like
Difficulty/GasUsed)
* initial attempt at migrating 'evm t8n' to use ExecuteBlockEphemerally
* using ExecutionResult in ExecuteBlockEphemerally
* bypass validations and integrate with EphemeralExecResult
* fixing output of 'evm t8n'
- remaining bits are "stateRoot" in results.txt and "balance" field for one account in
alloc.txt (for testdata=1)
* get ExecuteBlockEphemerally to accept getTracer lambda
* fix build failure
* test cases for evm t8n
* more test cases for evm t8n
* fix stateRoot computation in evm t8n
* remove reward argument, as EBE itself takes care of it
* final cleanups for migration to using ExecuteBlockEphemerally
* change EBEforBSC to match EBE
* fix linter issues
* manually revert an unwanted diff
* avoid calculating ReceiptHash twice
* linter check
* minor correction
* remove unnecessary logic in EBEforBsc
* fix integration tests
* fix build
* Ensure fake Bor txs + receipts are returned from all relevant RPC methods
* Add rest of bor implementation for eth_getBlockByNumber
* Use TxLookup index to find Bor txs
* Fix txHash on emitted borTxs and borReceipts
* Fix checks given that borTxs get registered in TxLookup; remove useless ref indirections
* debugs
* rename logs
* updated erigon lib with the attempt to fix deadlock
* Update erigon-lib that fixes the deadlock
* Revert "rename logs"
This reverts commit 13b6ac555314ce4317de2438d5f1a5e883343865.
* Revert "debugs"
This reverts commit 356de6c8ef3df2a440f8ad6c18ccb63496d8256d.
* revert unnecessary change
* go mod tidy
Co-authored-by: Igor Mandrigin <i@mandrigin.ru>
* Small optimisation for eth_getBlockByNumber
* Option to not retrieve transactions
* fixes
* Check hash
* Fixes
* Avoid shadowing of err in BlockWithSenders
* Fix test
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>