Commit Graph

1523 Commits

Author SHA1 Message Date
Giulio rebuffo
975de7cc74
added beacon primitives types (#1098) 2023-09-05 16:00:49 +00:00
Alex Sharov
e4c6944828
Restore genesis reads code - remote rpc case. Remove ctx parameter from baseApi func (tx already has internal ctx) (#1096) 2023-09-04 05:42:02 +00:00
Andrew Ashikhmin
82448e2ede
Revert most txpool errors to Warn (#1095)
Less radical variant of PR #1094
2023-09-01 17:03:41 +00:00
Giulio rebuffo
b08f183139
demoted txpool logs to Debug instead of Warn (#1094) 2023-09-01 15:28:06 +00:00
alex.sharov
21f96bf792 up linter version 2023-09-01 10:59:27 +07:00
Alex Sharov
88e9d7a4d3
mdbx: m1 segfault (#1093) 2023-08-31 11:35:50 +00:00
battlmonstr
a019c295fa
doc: third-party readme and license files (#1091) 2023-08-30 08:12:06 +00:00
Alex Sharov
34cb8007ae
Compress: graceful shutdown support (#1090) 2023-08-30 03:20:40 +00:00
battlmonstr
e3850da16f
ci: check source code licenses compatibility (#1089)
When it fails, it looks like this:

https://github.com/ledgerwatch/erigon-lib/actions/runs/6014808505/job/16315357613
2023-08-30 03:16:39 +00:00
Mark Holt
c2851b6ae7
Added Mdbx sizing to txpool config (#1086)
Added 

 ```
MdbxPageSize          datasize.ByteSize
MdbxDBSizeLimit       datasize.ByteSize
MdbxGrowthStep        datasize.ByteSize
```
to allow txpool db to be configured.
2023-08-26 07:45:09 +00:00
Giulio rebuffo
bae527eba9
Ranges in execution.proto (#1087) 2023-08-26 00:26:29 +00:00
Alex Sharov
0cdb085f51
Torrent: add trackers list (#1084) 2023-08-25 03:45:05 +00:00
alex.sharov
c344806b10 rename torquem-ch project 2023-08-24 18:10:47 +07:00
Alex Sharov
3c4b0d425b
move mdbx to new org (#1083) 2023-08-24 11:00:21 +00:00
Alex Sharov
ec899e41a1
metrics: prevent commit metrics duplication (#1082) 2023-08-24 02:24:09 +00:00
Alex Sharov
ac13f4307b
torrent lib to support go21 (#1081) 2023-08-23 00:15:40 +00:00
ledgerwatch
3aa5249d48
Add BorEvents snapshot type (#1051)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-08-18 15:33:09 +00:00
Somnath Banerjee
f84bd53b26
Fix broadcast issue for blob transactions (#1080) 2023-08-18 13:36:20 +00:00
Alex Sharov
0f311abd0e
Update README.md (#1079) 2023-08-18 07:29:13 +00:00
Alex Sharov
fdd39828c3
log file unmap/close errors (#1036) 2023-08-12 20:14:40 +00:00
Alex Sharov
de16cd6462
up 'x' packages versions (#1076) 2023-08-12 05:58:30 +00:00
Giulio rebuffo
36aec4c6fe
added sentinel direct (#1077) 2023-08-11 23:54:55 +00:00
Giulio rebuffo
1881b491b8
Gnosis fields for execution.proto (#1072) 2023-08-11 21:07:33 +00:00
Alex Sharov
8d0bcd06ea
tmpdb: move to tmpdir (#1074) 2023-08-11 19:06:05 +00:00
alex.sharov
309e0bdc6c pool: don't warn at Ctrl+C 2023-08-11 11:58:25 +06:00
Alex Sharov
a17eaecf00
Recsplit: cancelable build (#1073) 2023-08-11 05:54:56 +00:00
Andrew Ashikhmin
563a68124b
interfaces: Add parent_beacon_block_root (EIP-4788) (#1069)
Pick up https://github.com/ledgerwatch/interfaces/pull/187
2023-08-06 09:40:03 +00:00
Giulio rebuffo
6fc9f7e28b
removed missingHash (#1071) 2023-08-06 00:27:54 +00:00
Giulio rebuffo
3f118dbda5
save (#1070) 2023-08-05 00:27:17 +00:00
Giulio rebuffo
73d985faf4
Added memory diff to memory mutation (#1068) 2023-08-04 11:25:22 +00:00
Andrew Ashikhmin
0a6037d12f
OverrideShanghaiTime -> OverrideCancunTime (#1067) 2023-08-03 13:37:28 +00:00
racytech
d4f8da719e
init kzg ctx from file (trusted_setup.json) (#1066) 2023-08-03 06:35:10 +00:00
Andrew Ashikhmin
f33b0bc538
Fix blob transaction panic in txpool (#1065)
Fixes the following panic triggered by blob Hive tests:
```
[2c098836] panic: runtime error: index out of range [0] with length 0
[2c098836] 
[2c098836] goroutine 902 [running]:
[2c098836] github.com/ledgerwatch/erigon-lib/txpool.MainLoop.func1()
[2c098836] 	github.com/ledgerwatch/erigon-lib@v0.0.0-20230801100033-1b342f37741d/txpool/pool.go:1565 +0x100f
[2c098836] created by github.com/ledgerwatch/erigon-lib/txpool.MainLoop
[2c098836] 	github.com/ledgerwatch/erigon-lib@v0.0.0-20230801100033-1b342f37741d/txpool/pool.go:1492 +0x8c5
```
2023-08-01 16:16:56 +00:00
Andrew Ashikhmin
3a056bb669
Bump max size of blob transactions (#1063) 2023-08-01 10:32:05 +00:00
Giulio rebuffo
ddfe09918f
Better status codes for execution.proto (#1062) 2023-08-01 00:08:19 +00:00
Giulio rebuffo
c89353e91a
added NewMemoryBatchWithCustomDB (#1061) 2023-07-30 14:28:02 +00:00
Giulio rebuffo
da71e6471a
moreeeeee (#1060) 2023-07-28 22:23:03 +00:00
Andrew Ashikhmin
c07cefc3c9
EIP-4844: Rename "data gas" to "blob gas" (#1058)
See https://github.com/ethereum/EIPs/pull/7354 &
https://github.com/ethereum/consensus-specs/pull/3461. Prerequisite:
https://github.com/ledgerwatch/interfaces/pull/184
2023-07-28 09:50:57 +00:00
Giulio rebuffo
0e71e9b034
added MemDB() (#1059) 2023-07-27 22:23:26 +00:00
Giulio rebuffo
3bd3a4ca96
Added AssembleBlockRequest (#1057) 2023-07-27 12:37:54 +00:00
racytech
ff28c8fcdb
[WIP] decompress::Match (#1056) 2023-07-25 17:30:06 +00:00
Giulio rebuffo
588e1ea19c
Better handling of insertion (#1055) 2023-07-23 17:11:10 +00:00
ledgerwatch
1d6b5a3baf
Revert "add map size setter" (#1054)
Reverts ledgerwatch/erigon-lib#1050

It causes the error:

`EROR[07-21|21:45:02.806] [txpool] flush is local history err="table:
PoolTransaction, err: mdbx_cursor_put: MDBX_MAP_FULL: Environment
mapsize limit reached"
`
2023-07-22 03:09:51 +00:00
Mark Holt
32df191e7e
add map size setter (#1050)
Add a bound the txpool db, rather than leaving it as the default of 2TB.
This is to reduce the page file profile when running multiple nodes from
around 3.5GB per txpool instance.

The current pool map side is set to 512MB - which seems reasonable with
16MB increments
2023-07-17 19:48:43 +00:00
racytech
738be553b6
EIP-4844: TxPool::validateTx extension to meet specs (#1046) 2023-07-17 15:26:37 +00:00
Mark Holt
886a982b7a
Added struct to hold bor sprints in numeric order (#1038)
This checking replaces the config processing for bor sprints which has
the following issues:

1. It uses string ordering for blocks which is lexical so does not
handle decimal scale when sorting numbers
2. It parses the config map every calculation - which is expensive
relative to just checking the index order

This is likely not an issue for the existing main net as the map only
has 2 entries and their sort order is coincidentally the same for both
lexical and numeric ordering. Performance is likely also a non issue
compared to the other processing during execution flow.

These changes are intended to support tx indexing where in the
snapshotting process the calc will get called at least twice for each
bor block during 1000's of iterations.
2023-07-14 10:09:22 +00:00
Giulio rebuffo
e7661ad69c
Updated interfaces (#1049) 2023-07-14 00:51:44 +00:00
Alex Sharov
18f4c2a059
fix nil ptr background.progress object (#1048) 2023-07-13 08:33:05 +00:00
Giulio rebuffo
a85175eaa9
Removed engine (#1045) 2023-07-12 16:11:35 +00:00
Alex Sharov
7764cf6d55
crypto lib up (#1044) 2023-07-11 07:52:26 +00:00