Fix proposeSignedBlock() become sync.

This commit is contained in:
cheatfate 2020-12-01 16:18:57 +02:00 committed by zah
parent 088b001388
commit f6285d8381
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ proc installBeaconApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
# It was not integrated into the beacon node''s database. # It was not integrated into the beacon node''s database.
return 202 return 202
else: else:
let res = await proposeSignedBlock(node, head, AttachedValidator(), blck) let res = proposeSignedBlock(node, head, AttachedValidator(), blck)
if res == head: if res == head:
node.network.broadcast(getBeaconBlocksTopic(node.forkDigest), blck) node.network.broadcast(getBeaconBlocksTopic(node.forkDigest), blck)
# The block failed validation, but was successfully broadcast anyway. # The block failed validation, but was successfully broadcast anyway.