mirror of
https://github.com/status-im/nim-eth-p2p.git
synced 2025-02-17 01:06:44 +00:00
Fix [ProveInit] compilation warning.
This commit is contained in:
parent
caf273228e
commit
0e5cd27e84
@ -97,8 +97,7 @@ proc recoverMsgPublicKey(msg: Bytes, pk: var PublicKey): bool =
|
||||
pk) == EthKeysStatus.Success
|
||||
|
||||
proc unpack(msg: Bytes): tuple[cmdId: CommandId, payload: Bytes] =
|
||||
result.cmdId = msg[HEAD_SIZE].CommandId
|
||||
result.payload = msg[HEAD_SIZE + 1 .. ^1]
|
||||
result = (cmdId: msg[HEAD_SIZE].CommandId, payload: msg[HEAD_SIZE + 1 .. ^1])
|
||||
|
||||
proc expiration(): uint32 =
|
||||
result = uint32(epochTime() + EXPIRATION)
|
||||
|
Loading…
x
Reference in New Issue
Block a user