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
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
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
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
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
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
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
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
jangko
7a1fe5707c
Refactor engine api and cleanup web3 types conversion
2023-08-30 10:42:46 +07:00
jangko
820525d78c
Fix outdated EIP-4844 constants
2023-08-24 12:11:19 +07:00
jangko
8773eb609d
Fix engine api client ambiguity in engine api sim
2023-08-24 11:34:12 +07:00
jangko
38c0c34331
hive: Engine api simulator overhaul
2023-08-22 21:19:43 +07:00
jangko
ec17a5a348
engine_api: add getPayloadV3 and newPayloadV3 to echangeCapabilities
...
also add echangeCapabilities test to hive sim
2023-08-08 10:50:28 +07:00
jangko
7514cfc63f
increase jwt auth max time drift to 60 seconds
...
per engine api spec v1.0.0.beta.3
2023-08-08 08:26:08 +07:00
Jordan Hrycaj
221e6c9e2f
Unified database frontend integration ( #1670 )
...
* Nimbus folder environment update
details:
* Integrated `CoreDbRef` for the sources in the `nimbus` sub-folder.
* The `nimbus` program does not compile yet as it needs the updates
in the parallel `stateless` sub-folder.
* Stateless environment update
details:
* Integrated `CoreDbRef` for the sources in the `stateless` sub-folder.
* The `nimbus` program compiles now.
* Premix environment update
details:
* Integrated `CoreDbRef` for the sources in the `premix` sub-folder.
* Fluffy environment update
details:
* Integrated `CoreDbRef` for the sources in the `fluffy` sub-folder.
* Tools environment update
details:
* Integrated `CoreDbRef` for the sources in the `tools` sub-folder.
* Nodocker environment update
details:
* Integrated `CoreDbRef` for the sources in the
`hive_integration/nodocker` sub-folder.
* Tests environment update
details:
* Integrated `CoreDbRef` for the sources in the `tests` sub-folder.
* The unit tests compile and run cleanly now.
* Generalise `CoreDbRef` to any `select_backend` supported database
why:
Generalisation was just missed due to overcoming some compiler oddity
which was tied to rocksdb for testing.
* Suppress compiler warning for `newChainDB()`
why:
Warning was added to this function which must be wrapped so that
any `CatchableError` is re-raised as `Defect`.
* Split off persistent `CoreDbRef` constructor into separate file
why:
This allows to compile a memory only database version without linking
the backend library.
* Use memory `CoreDbRef` database by default
detail:
Persistent DB constructor needs to import `db/core_db/persistent
why:
Most tests use memory DB anyway. This avoids linking `-lrocksdb` or
any other backend by default.
* fix `toLegacyBackend()` availability check
why:
got garbled after memory/persistent split.
* Clarify raw access to MPT for snap sync handler
why:
Logically, `kvt` is not the raw access for the hexary trie (although
this holds for the legacy database)
2023-08-04 12:10:09 +01:00
jangko
70d718119e
fix txpool usage at the beginning of process
2023-08-04 10:59:12 +07:00
jangko
18587c3abe
use axplicit 127.0.0.1 instead of localhost string
...
on windows, using "localhost" for rpc test is very slow.
both pyspec_sim and engine_sim will need more than one hour.
while on linux and macos only few minutes.
2023-07-24 21:50:39 +07:00
jangko
1eca772a08
hive: pyspec simulator implementation
2023-07-19 20:33:02 +07:00