Bump nim eth (#1188)

* Bump nim eth

* Bump actions ubuntu
This commit is contained in:
KonradStaniec 2022-08-16 09:17:57 +02:00 committed by GitHub
parent 7489784ba8
commit c5101c16e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 4 deletions

View File

@ -64,7 +64,7 @@ jobs:
include:
- target:
os: linux
builder: ubuntu-18.04
builder: ubuntu-20.04
shell: bash
- target:
os: macos

View File

@ -110,7 +110,7 @@ jobs:
include:
- target:
os: linux
builder: ubuntu-18.04
builder: ubuntu-20.04
shell: bash
- target:
os: macos

View File

@ -118,6 +118,8 @@ proc run(config: PortalConf) {.raises: [CatchableError, Defect].} =
registerIncomingSocketCallback(@[
stateNetwork.portalProtocol.stream,
historyNetwork.portalProtocol.stream]),
# for now we do not use user data in callbacks
nil,
allowRegisteredIdCallback(@[
stateNetwork.portalProtocol.stream,
historyNetwork.portalProtocol.stream]),

View File

@ -34,6 +34,7 @@ proc newHistoryNode(rng: ref HmacDrbgContext, port: int): HistoryNode =
node,
utpProtocolId,
registerIncomingSocketCallback(@[hn.portalProtocol.stream]),
nil,
allowRegisteredIdCallback(@[hn.portalProtocol.stream]),
socketConfig
)

View File

@ -51,6 +51,7 @@ proc initPortalProtocol(
streamTransport = UtpDiscv5Protocol.new(
d, utpProtocolId,
registerIncomingSocketCallback(@[proto.stream]),
nil,
allowRegisteredIdCallback(@[proto.stream]),
socketConfig)

View File

@ -64,7 +64,7 @@ proc defaultDataDir*(): string =
const
defaultDataDirDesc = defaultDataDir()
defaultBlockFileName = "eth-block-data.json"
defaultBlockFileName = "eth-block-data"
defaultAccumulatorFileName = "eth-accumulator.json"
type

View File

@ -240,6 +240,7 @@ proc run(config: PortalCliConf) =
d,
utpProtocolId,
registerIncomingSocketCallback(@[portal.stream]),
nil,
allowRegisteredIdCallback(@[portal.stream]), socketConfig)
setTransport(portal.stream, streamTransport)

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 883825aad78f5db6f24257e64c1441ae7f3a1d21
Subproject commit 2556b090ea78416410098172b1ad3cc4d21a6474