Giulio rebuffo
5785f4ecec
Lightclient Checkpoint Sync ( #5738 )
2022-10-13 18:26:29 +02:00
Alex Sharov
1f8bd5de1b
e3: less allocations reconstitution ( #5735 )
2022-10-13 21:25:57 +07:00
Andrew Ashikhmin
3dd83388d2
Support jsonParams.BlockRewardContractTransitions ( #5737 )
2022-10-13 14:46:03 +02:00
hexoscott
e50110562a
revert execution batch size logic to size on disk ( #5732 )
...
Revert to older batch size logic to keep memory usage down during
execution phase and closer to the --batchSize flag size.
Spotted a "leak" in key generation as well. The unsafe pointer keeps the
byte slice around for as long as the batch is not committed, takes up a
fair chunk of memory surprisingly doing that so removed the unsafe
pointer usage giving the GC some chance to clean up along the way.
Moved the batch rollback into a defer func call rather than allowing
them to stack in the for loop. If this isn't going to work just let me
know and can change it back.
2022-10-13 09:10:26 +01:00
Alex Sharov
d2ef27d746
e3: reconstitution last step improve ( #5733 )
2022-10-13 14:33:39 +07:00
Alex Sharov
6cc10a27d3
e3: recondb no meminit ( #5730 )
2022-10-13 12:24:53 +07:00
Alex Sharov
63a6fb29ba
e3: cleanup ( #5729 )
2022-10-13 12:09:14 +07:00
Alex Sharov
1774abd6cd
e3: don't create own context, we are enough enough safe for kill ( #5728 )
2022-10-13 11:30:54 +07:00
Alex Sharov
86a03987d8
e3: header no copy ( #5727 )
2022-10-13 11:07:42 +07:00
Alex Sharov
b12b0d4627
e3: history bsc and mainnet snapshots ( #5725 )
2022-10-13 09:46:32 +07:00
Alex Sharov
d2436ab344
e3: optimize stateWriter.Put ( #5724 )
2022-10-13 09:37:14 +07:00
Giulio rebuffo
5734065e36
retrieving finalized checkpoint ( #5722 )
2022-10-13 01:05:01 +02:00
Giulio rebuffo
513e149dc4
separated sentinel_node executable ( #5721 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-12 23:47:06 +02:00
ledgerwatch
cbb95db8ed
Fix computation of minBaseFee in txpool ( #5720 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-12 20:07:05 +01:00
Giulio rebuffo
01975a4761
Added Bootstrap/Update handlers request ( #5718 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-12 19:55:43 +02:00
Andrew Ashikhmin
817b528ce1
Use NewValidatorSafeContract in ValidatorContract ( #5717 )
...
This fixes the following panic for Gnosis Chain on the validator switch
at block 9186425:
```
panic: method 'getValidators' not found
goroutine 90 [running]:
github.com/ledgerwatch/erigon/consensus/aura.(*ValidatorSafeContract).getListSyscall(0x14000ed9358, 0xd40004bf620)
github.com/ledgerwatch/erigon/consensus/aura/validators.go:634 +0x258
github.com/ledgerwatch/erigon/consensus/aura.(*ValidatorSafeContract).epochSet(0x16?, 0x20?, 0x8c2c79, {0xd4002d77180, 0x25f, 0x25f}, 0x11400fac7ee8?)
github.com/ledgerwatch/erigon/consensus/aura/validators.go:453 +0xdc
github.com/ledgerwatch/erigon/consensus/aura.(*ValidatorContract).epochSet(0x140006ae980?, 0x38?, 0x6f9d00000000c28e?, {0xd4002d77180?, 0x108acc108?, 0x40?}, 0x14000618000?)
```
2022-10-12 16:12:17 +02:00
ledgerwatch
df5c16fe06
Not use IsMaxStorageTxNum function ( #5715 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-12 13:38:51 +01:00
Alex Sharov
770d3ce574
goerli snapshots: blocks and history ( #5714 )
2022-10-12 17:25:37 +07:00
Alex Sharov
a9853d2ef8
Recon parallel: split ReconState to 2 objects to avoid lock contention between .Done() and .Get(), less ram in beginning ( #5713 )
2022-10-12 17:23:10 +07:00
Andrew Ashikhmin
41187bf06f
Correct tmp dir in integration ( #5712 )
...
Clean up after PR #5702 .
2022-10-12 11:18:17 +02:00
ledgerwatch
aa18b70f6d
Not print commit cycle timing on newPayload cycle ( #5711 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-12 09:51:23 +01:00
ledgerwatch
750d23427d
Covalenthq move status execution flag into vm config ( #5710 )
...
Co-authored-by: Sudeep <sudeepdino008@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-12 09:27:48 +01:00
Alex Sharov
4795217e4e
e3: prevent files ranges overlap ( #5684 )
2022-10-12 10:18:55 +07:00
Giulio rebuffo
7e6896b72e
downgraded go-verkle to safe ( #5707 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-12 00:38:02 +02:00
Giulio rebuffo
327abb3c13
fixed lightclient finality/optimistic updates ( #5706 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-11 23:44:02 +02:00
ledgerwatch
3cc1bf2741
Bump version ( #5704 )
2022-10-11 17:51:58 +01:00
net.wyman
00276ce7ab
add pendingTransactionWithBody subscription method ( #5675 )
...
Co-authored-by: dc <dctrlbox@gmail.com>
2022-10-11 16:52:07 +01:00
hexoscott
ab0ac1bfd4
wait for at most 500ms when receiving the GetPayload message from CL ( #5701 )
...
Seems simple enough, don't stop on interrupt but start a timer instead
and check on each loop if we should stop now or allow the block to
finish on its own
2022-10-11 16:51:53 +01:00
Andrew Ashikhmin
7286a0fef7
Create in-memory MDBX inside dirs.Tmp ( #5702 )
...
Previously "in-memory" MDBX instances for fork validation and mining
were created inside `os.TempDir()`. We should create them inside
Erigon's datadir so that the file permissions and the disk are the same
as for the main database.
Prerequisite: https://github.com/ledgerwatch/erigon-lib/pull/676 .
2022-10-11 16:49:38 +01:00
Leonard Chinonso
726ed8462d
Setup calls for rpc testing ( #5661 )
...
Setup calls for rpc testing
- Added call requests for testing rpc calls
- Added new methods getBalance and txPool content
2022-10-11 13:34:32 +01:00
Tim Mustafin
70851c35ee
[BSC] support for Moran fork ( #5696 )
...
This PR brings support for BSC Moran fork
Co-authored-by: Timur Mustafin <timur@mustafin.dev>
2022-10-11 13:33:32 +01:00
Andrew Ashikhmin
bffa4098b2
Fix slice bounds out of range in AccumulateRewards ( #5700 )
2022-10-11 14:30:12 +02:00
awskii
7895156543
commitment fixes for erigon4 ( #5695 )
...
- Fixed commitment issues both erigon3/erigon4
- get back update-based commitments approach
- partially fixed state seeking
2022-10-11 13:21:32 +01:00
Krishna Upadhyaya
66951592c7
Fix go-releaser version ( #5697 )
...
Issue :
https://github.com/ledgerwatch/erigon/actions/runs/3202785385/jobs/5232131489
Reason : There is no go-releaser version with v1.18.5
https://hub.docker.com/r/goreleaser/goreleaser-cross/tags
Updated it to v1.18.1 which we use in matic-fork/erigon.
2022-10-11 12:27:36 +01:00
ledgerwatch
a170d730c0
Fixing issues related to sync delays ( #5689 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-11 08:04:40 +01:00
Alex Sharov
a2e51a2469
e3: prune limited amount before commit #675 ( #5693 )
2022-10-11 11:25:13 +07:00
Giulio rebuffo
f09084f45d
Refactored and got rid of ton of useless code ( #5690 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-10 20:14:07 +02:00
Alex Sharov
6815504462
new bsc blocks snapshots ( #5681 )
2022-10-10 21:34:54 +07:00
Giulio rebuffo
e1dedf4220
Added Finalty/Optimistic requests ( #5688 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-10 15:58:31 +02:00
ledgerwatch
1bc0a796d2
fix for rpcdaemon crash if there is no datadir ( #5686 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-10-10 12:40:21 +01:00
Andrew Ashikhmin
b8059d7f96
No MaxCodeSize limit for AuRa ( #5685 )
...
[Nethermind/Chains/xdai.json](https://github.com/NethermindEth/nethermind/blob/master/src/Nethermind/Chains/xdai.json )
does not contain `maxCodeSize`, so it defaults to 2^63-1 (virtually
unlimited).
https://gnosisscan.io/tx/0x3bfa6631d0a3a845c16674f56771de30bc840e828ea8ead21dbea04541a30173
is a transaction example on Gnosis Chain where the code size exceed the
mainnet `maxCodeSize` of 24576.
2022-10-10 12:11:12 +02:00
Alex Sharov
6a7f8fb2a6
erigon3: cli command to force merge snapshots ( #5680 )
2022-10-10 09:47:01 +07:00
Giulio rebuffo
6193d02543
fixed no handlers responses (MetadataV1/MetadataV2) ( #5679 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-09 20:28:49 +02:00
Giulio rebuffo
b8d7219d9d
refactored streaming with protobuffers ( #5677 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-09 17:49:27 +02:00
Giulio rebuffo
a8338e4dd2
Infra refactoring ( #5673 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-09 13:41:15 +02:00
Alex Sharov
ee76a4f490
e3: getLogsV3 fix history txnum ( #5676 )
2022-10-09 18:29:35 +07:00
Giulio rebuffo
067ad9a59b
Licensing new files in cmd/lightclient ( #5672 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-08 16:15:44 +02:00
Giulio rebuffo
e36b1206f7
Resolve panic on ctx.done when using --experimental.lightclient ( #5670 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-08 15:07:04 +02:00
Giulio rebuffo
5493ce864d
Removed code duplications for ping handlers ( #5668 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-08 01:02:56 +02:00
Mark Shields
1bcf162bf2
feat: add base kubernetes manifests ( #5664 )
...
Adds bare minimum, base kubernetes manifests for running erigon in
kubernetes.
Does not include crucial beacon chain, persistent volumes, etc.
I currently use this as a base for 5 erigon Pods, each with an erigon
execution node and prysm beacon node, along with 10 rpcdaemon pods, a
TLS-terminated Ingress with a cert-manager issued TLS certificate. I
would like to give back to the community then use this as an upstream
kustomized base. See: https://kustomize.io
2022-10-07 21:43:42 +01:00