Jordan Hrycaj
e8eb3268f5
Generalise prune mode option 4 different db models ( #2139 )
...
* Update README
* Nimbus-main: replaced `PruneMode` options by `ChainDbMode` options
details:
For the legacy database, this changes the phrase
- `conf.pruneMode == PruneMode.Full` to the expression
+ `conf.chainDbMode == ChainDbMode.Prune`.
* Fix issues moaned about by NIM compiler
* Fix copyright year
2024-04-17 18:09:55 +00:00
jangko
6c1afe1127
Engine API: forkChoiceUpdated V2 And V3 should return invalidPayloadAttributes error instead of invalidParams error upon receiving erroneous payload attributes
2024-04-17 15:45:39 +07:00
andri lim
e713f3c287
Implement eth_feeHistory ( #2130 )
...
* Implement eth_feeHistory
* Fix copyright year
2024-04-16 08:02:42 +07:00
andri lim
fd9bb28b20
Bump nim-web3 to 9e370474fb16039860d074535dd1649f1c2307b2 ( #2112 )
2024-03-28 14:16:40 +07:00
andri lim
33976e8875
Replace invalidParams error with invalidForkchoiceState error in forkchoiceUpdated handler ( #2106 )
2024-03-26 09:31:21 +07:00
andri lim
eb67e78fde
Implement RPC methods: debug_getRawBlock, debug_getRawHeader, debug_g… ( #2098 )
...
* Implement RPC methods: debug_getRawBlock, debug_getRawHeader, debug_getRawReceipts, debug_getRawTransaction
* Fix engine api sim when calling setupDebugRpc
2024-03-22 23:40:16 +07:00
andri lim
9cd80800df
Load Kzg trusted setup at the start of consensus sim ( #2096 )
2024-03-22 12:49:26 +07:00
andri lim
7ea6d719d9
Implement RPC method eth_getAccessList ( #2091 )
...
* Implement RPC method eth_getAccessList
* Fix comment
2024-03-21 18:24:32 +07:00
andri lim
30277be1f3
Bump nim-web3 to 285d97c2b05bbe2a13dab4b52ea878157fb1a1a1 ( #2088 )
...
* Bump nim-web3 to 285d97c2b05bbe2a13dab4b52ea878157fb1a1a1
Unify EthCall/EthSend into TransactionArgs (#138 )
* bump ssz-serialization
* Fix BlockNumber conversion
* Bump ssz-serialization: Restrict toSszType usage to non SszType in readSszBytes (#81 )
2024-03-21 08:05:22 +07:00
andri lim
c41206be39
Fix styles and reduce compiler warnings ( #2086 )
...
* Fix styles and reduce compiler warnings
* Fix copyright year
2024-03-20 14:35:38 +07:00
Kim De Mey
1159b0114e
Add portal_bridge history mode ( #2067 )
...
Portal bridge mode for following latest and injecting the latest
block data into the Portal network.
2024-03-11 18:20:29 +01:00
Jordan Hrycaj
a02a915039
Provide public default db symbol ( #2050 )
...
* CoreDb: Provide default db backend symbols
why:
Handy for running `Aristo` against standard tests
note:
These defaults are currently set to legacy DB types. The must be
enabled manually in `db/core_db.nim`.
* Provide `Aristo` for macro assembler related tests
caveat:
Some tests use `initStorageTrie()` which lets `Aristo` bail out. The
test need to run on `distinct_ledgers` (or something like) rather than
`distinct_tries`.
* Tests: Misc modules that can run on `Aristo` as well
* NoHive: Module that can run on `Aristo` as well
* Fix copyright year
* ditto
2024-02-23 09:17:24 +00:00
andri lim
52aa87c539
Align with EIP-4844: rename getBlobGasPrice to getBlobBaseFee ( #2043 )
2024-02-21 16:14:34 +07:00
andri lim
7b4ef814ea
Bump eth_tests and related fixes ( #2042 )
...
* Bump eth_tests and related fixes
* Fix tests
2024-02-21 16:14:20 +07:00
andri lim
966adcb124
Prepare source code for nim v2 CI ( #2028 )
...
* Prepare source code for nim v2 CI
* Fix copyright year
2024-02-15 09:57:05 +07:00
andri lim
8a40521cbe
Fix 'trustedSetupFile' is not accessible for type NimbusConf.cmd == import ( #2008 )
2024-02-04 22:45:54 +07:00
andri lim
a441ec3cb1
Remove obsolete select_backend and fix simulators CI ( #2007 )
...
* Remove obsolete select_backend
* Fix copyright year
2024-02-04 21:28:20 +07:00
andri lim
c635e160d9
Implement combo http server for rpc, engine_api, and graphql services ( #1992 )
...
* Combo HTTP server implementation
* Use json flavor for jwt_auth decoder
2024-01-29 20:20:04 +07:00
Kim De Mey
dbc1ae86e2
Vendor bumps + related fixes + warning fixes ( #1985 )
...
- Vendor bump of stew, nim-eth, chronos, nimbus-eth2 and libp2p
- Bump related fixes + fixes of deprecation warnings
- Several other warnings fixed.
2024-01-24 16:28:03 +01:00
jangko
fb2aa1b6f9
Fix engine_sim regression
2024-01-15 13:03:29 +07:00
jangko
3e21281d12
Bump nim-web3 and others
...
Bump nim-json-rpc and nimbus-eth2 too.
Reason: both nim-json-rpc and nim-web3 migrate from
stdlib/json to nim-json-serialization
2024-01-14 10:41:23 +07:00
jangko
5fd54961e3
Bump nim-web3: remove rpc types duplicates
2023-12-13 07:58:12 +07:00
Jordan Hrycaj
b623909c44
Ledger activate unified accounts cache wrapper ( #1939 )
...
* Activate `LedgerRef` wrapper for `AccountsCache`
details:
`accounts_cache.nim` methods are indirectly processed by the wrapper
methods from `ledger.nim`.
This works for all sources except `test_state_db.nim` where the source
`accounts_cache.nim` is included (rather than imported) in order to
access objects privy to the very source.
* Provide facility to switch to a preselected `LedgerRef` type
details:
Can be set as suggestion when initialising `CommonRef`
* Update `CoreDb` test suite for better time tracking
details:
+ Allow time logging by pre-defined block intervals
+ Print `CoreDb`/`Ledger`profiling results (if enabled)
2023-12-12 19:12:56 +00:00
jangko
9cf3c71a57
Fix Engine API simulator
2023-11-05 14:46:26 +07:00
jangko
7de6199ba3
Engine API: Fix latestValidHash value when invalid timestamp detected
2023-11-05 10:52:27 +07:00
jangko
19f313d891
More Engine API tests
2023-11-03 16:58:22 +07:00
jangko
25bc8e4b22
Add blobGasPrice and blobGasUsed to ReceiptObject of RPC
2023-11-02 11:38:07 +07:00
jangko
69254e614f
More Engine API tests
2023-11-01 19:55:28 +07:00
jangko
682b160777
Fix TxSender of engine api simulator
2023-11-01 17:30:47 +07:00
jangko
b0000eed8b
Add check copyright year linter to CI
2023-11-01 10:41:20 +07:00
jangko
5d50bb9a2b
Add Engine API generic tests
2023-10-31 10:18:37 +07:00
jangko
d5c6c1bbf0
Pyspec sim: run test using stable release test vector
2023-10-31 09:52:31 +07:00
andri lim
5bfdcd0d27
Engine API: rearrange version and fork validation in fcU and newPayload ( #1848 )
2023-10-24 11:30:48 +07:00
andri lim
77289c7795
More cancun tests ( #1843 )
...
* Engine API simulator: More Cancun tests
* Fix Cancun validation in Engine API and TxPool
2023-10-23 20:59:57 +07:00
andri lim
4f6cdab641
Engine API simulator: pass first Cancun test ( #1838 )
2023-10-22 14:05:20 +07:00
andri lim
ec08907f05
hive sim: Prepare Cancun engine API test framework ( #1809 )
2023-10-19 10:28:52 +07:00
andri lim
04c7ed8ec9
Change EthTime from std.Time to distinct uint64 ( #1820 )
...
* Change EthTime from std.Time to distinct uint64
* Bump nimbus-eth2
2023-10-18 09:16:11 +07:00
andri lim
744e4f9739
bump web3 and add shouldOverrideBuilder field to GetPayloadV3Response ( #1807 )
...
* bump web3 and add shouldOverrideBuilder field to GetPayloadV3Response
* Resolve ambiguous identifier error
2023-10-05 20:54:51 +07:00
andri lim
34b1e29ac9
Fix test_blockchain_json and pyspec simulator for Cancun ( #1805 )
...
* Fix test_blockchain_json and pyspec simulator for Cancun
* Preserve applyDeletes comments
* Fix redefinition error
* Move test_macro to tests folder
2023-10-05 10:04:12 +07:00
andri lim
12f494e669
Only one place to declare gwei ( #1802 )
...
* Only one place to declare gwei
* Fix weiAmount overflow
2023-10-04 10:47:18 +07:00
jangko
5754a9079b
Simplify pyspec simulator
2023-09-30 21:31:57 +07:00
jangko
369a54d62a
Add makeNextWithdrawals to engine api simulator
2023-09-30 20:16:45 +07:00
andri lim
501d8a369a
Add BeaconSync reorg tests ( #1782 )
...
* Add BeaconSync reorg tests
* Fix redefinition error in tx_sender.nim
2023-09-30 19:20:29 +07:00
andri lim
e8d59bc7a7
Working prototype of beacon downloader ( #1780 )
...
* Working prototype of beacon downloader
* Use KeyedQueue for setSyncTarget queue
* Convert MergeTracker and PayloadQueue to non ref object
2023-09-28 13:20:12 +07:00
andri lim
9cce31d921
Prepare pyspec sim for Cancun ( #1773 )
2023-09-25 06:53:33 +07:00
andri lim
b7f0be5468
Fix Windows simulators CI ( #1743 )
...
* update simulator cache key
* enable libbacktrace in hive simulators
2023-09-10 21:13:09 +07:00
andri lim
948c94763c
Bump nim-eth: Add closeWait to EthereumNode ( #1742 )
2023-09-09 13:54:58 +07:00
andri lim
348a9aea6f
Close eth node after usage ( #1741 )
2023-09-08 21:37:50 +07:00
jangko
5fb0fc65ba
Implement beacon sync stub
...
- Prepare a test env for beacon sync in engine api simulator.
- Wiring beacon sync to the rest of subsystems.
2023-09-07 08:49:31 +07:00
jangko
6139152143
Add multiple clients support to engine api simulator
2023-09-06 18:51:02 +07:00