mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-23 03:38:21 +00:00
Bump stint to v2.0: new array backend (#5113)
* bump stint to v2.0: new array backend * Fix missing isEven in libnimbus_lc.nim * bump nim-stint: compiles with arm64
This commit is contained in:
parent
d4543239d7
commit
5c88e74c08
@ -10,11 +10,11 @@
|
|||||||
import
|
import
|
||||||
std/[deques, strformat, strutils, sequtils, tables, typetraits, uri, json],
|
std/[deques, strformat, strutils, sequtils, tables, typetraits, uri, json],
|
||||||
# Nimble packages:
|
# Nimble packages:
|
||||||
chronos, metrics, chronicles/timings, stint/endians2,
|
chronos, metrics, chronicles/timings,
|
||||||
json_rpc/[client, errors],
|
json_rpc/[client, errors],
|
||||||
web3, web3/ethhexstrings, web3/engine_api,
|
web3, web3/ethhexstrings, web3/engine_api,
|
||||||
eth/common/[eth_types, transaction],
|
eth/common/[eth_types, transaction],
|
||||||
eth/async_utils, stew/[assign2, byteutils, objects, results, shims/hashes],
|
eth/async_utils, stew/[assign2, byteutils, objects, results, shims/hashes, endians2],
|
||||||
# Local modules:
|
# Local modules:
|
||||||
../spec/[deposit_snapshots, eth2_merkleization, forks, helpers],
|
../spec/[deposit_snapshots, eth2_merkleization, forks, helpers],
|
||||||
../spec/datatypes/[base, phase0, bellatrix, deneb],
|
../spec/datatypes/[base, phase0, bellatrix, deneb],
|
||||||
|
@ -1561,6 +1561,9 @@ proc ETHTransactionsCreateFromJson(
|
|||||||
if data.hash.asEth2Digest != hash:
|
if data.hash.asEth2Digest != hash:
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
|
template isEven(x: int64): bool =
|
||||||
|
(x and 1) == 0
|
||||||
|
|
||||||
# Compute from execution address
|
# Compute from execution address
|
||||||
var rawSig {.noinit.}: array[65, byte]
|
var rawSig {.noinit.}: array[65, byte]
|
||||||
rawSig[0 ..< 32] = tx.R.toBytesBE()
|
rawSig[0 ..< 32] = tx.R.toBytesBE()
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||||
|
|
||||||
import std/[typetraits, strutils]
|
import std/[typetraits, strutils]
|
||||||
import stew/[assign2, results, base10, byteutils], presto/common,
|
import stew/[assign2, results, base10, byteutils, endians2], presto/common,
|
||||||
libp2p/peerid, serialization, json_serialization,
|
libp2p/peerid, serialization, json_serialization,
|
||||||
json_serialization/std/[options, net, sets],
|
json_serialization/std/[options, net, sets],
|
||||||
chronicles
|
chronicles
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import
|
import
|
||||||
chronos,
|
chronos,
|
||||||
stew/results,
|
stew/[results, endians2],
|
||||||
presto/client,
|
presto/client,
|
||||||
../helpers,
|
../helpers,
|
||||||
"."/[rest_common, eth2_rest_serialization]
|
"."/[rest_common, eth2_rest_serialization]
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# Import this module to get access to `hash_tree_root` for spec types
|
# Import this module to get access to `hash_tree_root` for spec types
|
||||||
|
|
||||||
import
|
import
|
||||||
|
stew/endians2,
|
||||||
ssz_serialization/[merkleization, proofs],
|
ssz_serialization/[merkleization, proofs],
|
||||||
./ssz_codec
|
./ssz_codec
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Nimbus
|
# Nimbus
|
||||||
# Copyright (c) 2018-2022 Status Research & Development GmbH
|
# Copyright (c) 2018-2023 Status Research & Development GmbH
|
||||||
# Licensed under either of
|
# Licensed under either of
|
||||||
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
|
||||||
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
|
||||||
@ -12,7 +12,7 @@ import
|
|||||||
std/[os],
|
std/[os],
|
||||||
# Status lib
|
# Status lib
|
||||||
eth/db/[kvstore, kvstore_sqlite3],
|
eth/db/[kvstore, kvstore_sqlite3],
|
||||||
stew/results,
|
stew/[results, endians2],
|
||||||
# Internal
|
# Internal
|
||||||
../../beacon_chain/validators/slashing_protection,
|
../../beacon_chain/validators/slashing_protection,
|
||||||
../../beacon_chain/spec/[helpers],
|
../../beacon_chain/spec/[helpers],
|
||||||
|
@ -12,7 +12,7 @@ import
|
|||||||
# Status lib
|
# Status lib
|
||||||
unittest2,
|
unittest2,
|
||||||
chronicles, chronos,
|
chronicles, chronos,
|
||||||
stew/byteutils,
|
stew/[byteutils, endians2],
|
||||||
taskpools,
|
taskpools,
|
||||||
# Internal
|
# Internal
|
||||||
../beacon_chain/gossip_processing/[gossip_validation],
|
../beacon_chain/gossip_processing/[gossip_validation],
|
||||||
|
2
vendor/nim-stint
vendored
2
vendor/nim-stint
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 94fc521ee0f1e113d09ceeaa3568d4d7a6c0b67d
|
Subproject commit 54e24cae415b1bed39a987ecd08c19a34f740972
|
Loading…
x
Reference in New Issue
Block a user