Skip to content

Commit

Permalink
Minimal changes required for building the LES branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Oct 16, 2018
1 parent 343cc4f commit 41adca1
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 34 deletions.
22 changes: 0 additions & 22 deletions nimbus/account.nim

This file was deleted.

5 changes: 3 additions & 2 deletions nimbus/config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# This file may not be copied, modified, or distributed except according to
# those terms.

import parseopt, strutils, macros, os
import asyncdispatch2, eth_keys, eth_p2p, eth_common, chronicles
import
parseopt, strutils, macros, os,
asyncdispatch2, eth_keys, eth_p2p, eth_common, chronicles, nimcrypto/hash

const
NimbusName* = "Nimbus"
Expand Down
3 changes: 1 addition & 2 deletions nimbus/constants.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import
math, strutils, eth_common
math, strutils, eth_common, nimcrypto/hash

proc default(t: typedesc): t = discard

Expand Down
2 changes: 1 addition & 1 deletion nimbus/db/backends/rocksdb_backend.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, rocksdb, ranges, eth_trie/[db_tracing, constants]
import os, rocksdb, ranges, eth_trie/[defs, db_tracing]
import ../storage_types

type
Expand Down
2 changes: 1 addition & 1 deletion nimbus/db/state_db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import
sequtils, strformat, tables,
chronicles, eth_common, nimcrypto, rlp, eth_trie/[hexary, db],
../constants, ../errors, ../validation, ../account
../constants, ../errors, ../validation

logScope:
topics = "state_db"
Expand Down
2 changes: 1 addition & 1 deletion nimbus/genesis.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import
times, tables,
eth_common, stint, byteutils, rlp, ranges, block_types, nimcrypto,
chronicles, eth_trie, eth_trie/db,
db/[db_chain, state_db], genesis_alloc, config, account, constants
db/[db_chain, state_db], genesis_alloc, config, constants

type
Genesis* = object
Expand Down
3 changes: 2 additions & 1 deletion nimbus/nimbus.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import
os, strutils, net, eth_common, db/[storage_types, db_chain],
asyncdispatch2, json_rpc/rpcserver, eth_keys,
eth_p2p, eth_p2p/rlpx_protocols/[eth],
eth_p2p, eth_p2p/rlpx_protocols/[eth_protocol, les_protocol],
eth_p2p/blockchain_sync,
config, genesis, rpc/[common, p2p], p2p/chain,
eth_trie/db

Expand Down
2 changes: 1 addition & 1 deletion nimbus/rpc/p2p.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# those terms.

import
strutils, times,
strutils, times, options,
nimcrypto, json_rpc/rpcserver, hexstrings, stint, byteutils, ranges/typedranges,
eth_common, eth_p2p, eth_keys, eth_trie/db, rlp,
../utils/header, ../transaction, ../config, ../vm_state, ../constants,
Expand Down
2 changes: 1 addition & 1 deletion nimbus/rpc/rpc_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type
data*: EthHashStr # TODO: Support more data. The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see Ethereum Contract ABI.
nonce*: int # (optional) integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce

EthCall* = object
EthCall* = object
# Parameter from user
source*: EthAddressStr # (optional) The address the transaction is send from.
to*: EthAddressStr # The address the transaction is directed to.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_rpc.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import
unittest, json, strformat, nimcrypto, rlp,
json_rpc/[rpcserver, rpcclient],
json_rpc/[rpcserver, rpcclient],
../nimbus/rpc/[common, p2p, hexstrings],
../nimbus/constants,
../nimbus/nimbus/[account, vm_state, config],
../nimbus/nimbus/[vm_state, config],
../nimbus/db/[state_db, db_chain], eth_common, byteutils,
eth_trie/[memDb, types],
eth_p2p, eth_keys
Expand Down

0 comments on commit 41adca1

Please sign in to comment.