Commit Graph

15942 Commits

Author SHA1 Message Date
3nprob
a738a0dd51
makefile: Add DOCKER_{UID,GID,TAG} make params (#4457)
Co-authored-by: 3np <3np@example.com>
2022-06-16 15:50:59 +01:00
Giulio rebuffo
2e600316e3
Used memory batches from Erigon (#4469)
* modded summed

* deleted

* ops
2022-06-16 16:39:56 +02:00
Enrique Jose Avila Asapche
963fb7a7f5
BSC main net Euler fork (#4461)
* added euler into chainConfig

* parlia abi update

* updated upgrade.go

* ops/

* added euler gas usage

* added eulerBlock for bsc

* changed block positioning

* comment
2022-06-16 15:32:32 +01:00
ledgerwatch
df3eea6414
Not send sentry task to closed tasks channel (#4467)
* Not send sentry task to closed tasks channel

* Add comments

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 11:17:53 +01:00
Andrew Ashikhmin
bca563fd0f
Fix genesis storage collision state tests (#4462)
* Enable a couple of tests that work now

* Fix genesis storage collision state tests

* IncarnationMap in t8ntool MakePreState
2022-06-15 21:17:16 +01:00
Giulio rebuffo
631d485476
Renamed mutations types to be exported (#4463)
* renamed

* ops
2022-06-15 19:59:20 +02:00
Giulio rebuffo
663ccfd4dc
better flush (#4459) 2022-06-15 18:45:05 +02:00
ledgerwatch
2e4e7bd4de
[erigon2.2] Log stats tool (#4453)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-15 07:10:37 +01:00
Giulio rebuffo
ff5cbcb75d
Made in memory mutation compatible with all buckets (#4454)
* progress #1

* progress #2

* proper file naming

* more mature memory mutation
2022-06-15 01:10:41 +02:00
Giulio rebuffo
cad32ee1cf
added deletion support (#4451) 2022-06-14 21:43:44 +02:00
sudeep
7f81e0ddde
in transaction execution, subtract from account balance only after enough gaspool is ensured (#4450)
- noticed the difference when executing testdata#10 in go-ethereum and erigon
2022-06-14 20:33:30 +01:00
ledgerwatch
21e3ebdab5
Update skip analysis, add more BSC snapshot hashes (#4448)
* Update skip analysis, add more BSC snapshot hashes

* Syntax fix

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-14 16:06:42 +01:00
Enrique Jose Avila Asapche
352e5b3d2a
Clean up (#4445)
* changed to rpchelper

* got rid of getBlockNumber file
2022-06-14 14:29:49 +01:00
ledgerwatch
34d823c15a
txid patch to try to reduce GC work during commit (#4441)
* txid patch to try to reduce GC work during commit

* Switch to erigon-lib main

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-14 12:31:26 +01:00
Andrew Ashikhmin
92b1f06932
Gray Glacier bomb delay (#4443) 2022-06-14 10:48:40 +01:00
Enrique Jose Avila Asapche
a5cb53d690
safe and finalized blocks from eth_getBlockByNumber (#4436)
* added getFinalzed and getSafe block num

* added rpc finalized and safe block num

* getting nums

* returning nil

* returning nil

* added to helper.go

* removed repeated code

* added functions into rpchelper

* returning err

* simplified

* using previous latest getter

* getting pending block with filter/

* Fix plain state block number

* Fix test

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-14 11:07:46 +03:00
laughship
f376d0a7a0
Remove debug output (#4442) 2022-06-14 05:31:42 +01:00
ledgerwatch
e47dd15e68
[erigon2.2] Prototype of eth_getLogs (#4437)
* Initial work

* Fix compile errors

* Update

* Debug

* Cleanup

* Temp changes

* Temp

* Remove temp

* Remove print

* Upgate to erigon-lib main

* go mod tidy

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-13 21:25:17 +01:00
Giulio rebuffo
1f36d76e09
Added Flush function to memory mutation (#4439) 2022-06-13 18:20:18 +02:00
Andrew Ashikhmin
eb497372ae
Interruptible PoS block building (#4438)
* Fix a typo

* BlockBuilder dummy

* BlockProposerParametersPOS -> BlockBuilderParameters

* Pass tx to MiningStep

* BlockBuilderFunc

* Interrupt in MiningExec Stage

* Draft implementation of BlockBuilder

* Fail back to empty header

* Add a comment

* cosmetic change

* Cosmetic change again

* It's not safe to pass transactions between goroutines
2022-06-13 15:43:09 +02:00
ledgerwatch
fd8adddce8
trace_filter implementation based on erigon 2 update 2 data (#4431)
* trace_filter implementation based on erigon 2 update 2 data

* Fix test compile, extract txNums

* Update to erigon-lib, add generic heap

* Fix getHeaderHash for RPC methods

* Missing files

* Skip tests

* Add reward traces

* Filter trace lint

* Reinstate filtering

* Print

* Print

* Fix

* Print

* Print txNums

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Remove prints

* Fix nil dereference

* Inclusive toBlock bound

* Print

* Print

* Hack

* remove some deps

* Fix lint

* Update erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-12 12:44:01 +01:00
iFA
41c0a47485
Add REVERT result to trace (#4434)
* Add REVERT result to trace

* topTrace error should be changed too
2022-06-11 12:05:26 +01:00
ledgerwatch
3f1e9948fa
Update skip_analysis.go (#4435) 2022-06-11 08:53:02 +01:00
ledgerwatch
1cc5b92dd8
Another fix for stuck header download (#4433)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-11 08:13:40 +01:00
ledgerwatch
8e3ac8a21c
Erigon2 upgrade 2 prototype (#4341)
* Erigon2 upgrade 2 prototype

* Latest erigon-lib

* Fixes

* Fix print

* Fix maxSpan

* Reduce maxSpan

* Remove duplicate joins

* TxNum

* Fix resuming

* first draft of history22

* Introduce historical reads

* Update to erigon-lib

* Update erigon-lib

* Update erigon-lib

* Fixes and tracing for checkChangeSets

* More trace

* Print account details

* fix getHeader

* Update to erigon-lib main

* Add tracer indices and event log indices

* Fix calltracer

* Fix calltracer

* Duplicate rpcdaemon into rpcdaemon22

* Fix tests

* Fix tests

* Fix tests

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-10 16:18:43 +01:00
ledgerwatch
43f5f0ae27
Close peerInfo tasks channel (#4429)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-10 11:59:31 +01:00
Krishna Upadhyaya
1e3c90ba80
Bor devnet option (#4428)
* bor mining testing

* Implemented bor-devent network

* Minor fixes

* use signer as validator

* remove unused spaces

* fix typo
2022-06-10 15:32:04 +07:00
Alex Sharov
059e5d1ea5
roaring: up version #4427 2022-06-10 09:02:00 +07:00
Alex Sharov
b004589610
up mmap-go version to solve Win problem #4426 2022-06-10 08:47:24 +07:00
Giulio rebuffo
e2a04f7567
fix (#4425) 2022-06-10 02:52:35 +02:00
Giulio rebuffo
f9024fed84
Removed annoying log (#4424) 2022-06-10 01:54:22 +02:00
Giulio rebuffo
4b4218d2f6
added licensing (#4422) 2022-06-09 16:57:00 +01:00
Andrew Ashikhmin
36eacd23c0
eth_blockNumber should be equal to latest in eth_getBlockByNumber (#4421) 2022-06-09 15:53:37 +02:00
ledgerwatch
f830401258
Update skip_analysis.go (#4420) 2022-06-09 13:38:00 +01:00
Andrew Ashikhmin
367a417d6b
core/types: remove unused field 'td' in Block (#25010) (#4416)
Co-authored-by: Rajaram Gaunker <zimbabao@gmail.com>
2022-06-09 13:27:14 +01:00
Giulio rebuffo
b8e5cbf820
fixed timeout (#4419) 2022-06-09 13:16:11 +02:00
Alex Sharov
0e142e33a0
Reclaimable space in logs (#4417)
* save

* save

* save

* save

* save

* save

* save
2022-06-09 11:47:38 +01:00
Enrique Jose Avila Asapche
ace482bd00
revert #4411 (#4418) 2022-06-09 12:26:30 +02:00
Andrew Ashikhmin
27d652b2a4
WriteForkchoiceHead for no-op FCUs (#4415)
* WriteForkchoiceHead for no-op FCUs

* Flip WriteForkchoiceHead & safeAndFinalizedBlocksAreCanonical
2022-06-09 12:26:09 +02:00
Enrique Jose Avila Asapche
77e2934647
if no latest valid hash default to empty hash (#4411) 2022-06-09 09:47:33 +07:00
Alex Sharov
935975bebd
methods to configure db (#4412)
* save

* save

* save
2022-06-09 09:45:30 +07:00
ledgerwatch
f31abfe83b
Fixes for RPC notification log (#4410)
* Underflow fix

* Fix rpc notification to 0

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-09 08:48:19 +07:00
iFA
bd96c698a4
Fix operation order during tracing suicide op code (#4409) 2022-06-08 21:56:20 +01:00
Andrew Ashikhmin
644d25d25d
MergeForkBlock -> MergeNetsplitBlock (#4407) 2022-06-08 12:41:50 +02:00
ledgerwatch
2305d09d0d
Print blocks to TTD (#4405)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-08 10:26:42 +01:00
Andrew Ashikhmin
46d026d8e8
Start txpool in AddLocalTxs (#4406) 2022-06-08 11:13:09 +02:00
Alex Sharov
c97064173e
Open reset blocks migration: to delete .torrent files also #4404 (#4404) 2022-06-08 09:51:07 +07:00
Willian Mitsuda
cbe25665db
Fix --help for --http; embedded rpcdaemon is off by default (#4402) 2022-06-08 09:30:24 +07:00
Alex Sharov
feabb96e69
Snapshots: allow delete .seg files #4403 2022-06-08 09:29:59 +07:00
Alex Sharov
d7d698f565
db migration to reset blocks (#4389)
* save

* save

* save

* save

* save

* save

* Update reset_blocks.go

* Not to remove too many tx lookup files

* Fix truncate blocks and add reset txlookup

* Fix bodies

* Fix nil pointer

Co-authored-by: ledgerwatch <akhounov@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-07 19:59:14 +01:00