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:
andri lim 2023-09-13 01:16:04 +07:00 committed by GitHub
parent d4543239d7
commit 5c88e74c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 8 deletions

View File

@ -10,11 +10,11 @@
import
std/[deques, strformat, strutils, sequtils, tables, typetraits, uri, json],
# Nimble packages:
chronos, metrics, chronicles/timings, stint/endians2,
chronos, metrics, chronicles/timings,
json_rpc/[client, errors],
web3, web3/ethhexstrings, web3/engine_api,
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:
../spec/[deposit_snapshots, eth2_merkleization, forks, helpers],
../spec/datatypes/[base, phase0, bellatrix, deneb],

View File

@ -1561,6 +1561,9 @@ proc ETHTransactionsCreateFromJson(
if data.hash.asEth2Digest != hash:
return nil
template isEven(x: int64): bool =
(x and 1) == 0
# Compute from execution address
var rawSig {.noinit.}: array[65, byte]
rawSig[0 ..< 32] = tx.R.toBytesBE()

View File

@ -6,7 +6,7 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms.
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,
json_serialization/std/[options, net, sets],
chronicles

View File

@ -8,7 +8,7 @@
import
chronos,
stew/results,
stew/[results, endians2],
presto/client,
../helpers,
"."/[rest_common, eth2_rest_serialization]

View File

@ -10,6 +10,7 @@
# Import this module to get access to `hash_tree_root` for spec types
import
stew/endians2,
ssz_serialization/[merkleization, proofs],
./ssz_codec

View File

@ -1,5 +1,5 @@
# Nimbus
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed under either of
# * 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)
@ -12,7 +12,7 @@ import
std/[os],
# Status lib
eth/db/[kvstore, kvstore_sqlite3],
stew/results,
stew/[results, endians2],
# Internal
../../beacon_chain/validators/slashing_protection,
../../beacon_chain/spec/[helpers],

View File

@ -12,7 +12,7 @@ import
# Status lib
unittest2,
chronicles, chronos,
stew/byteutils,
stew/[byteutils, endians2],
taskpools,
# Internal
../beacon_chain/gossip_processing/[gossip_validation],

2
vendor/nim-stint vendored

@ -1 +1 @@
Subproject commit 94fc521ee0f1e113d09ceeaa3568d4d7a6c0b67d
Subproject commit 54e24cae415b1bed39a987ecd08c19a34f740972