Fix proposeSignedBlock() become sync.
This commit is contained in:
parent
088b001388
commit
f6285d8381
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue