From f6285d83816cb9b76a26de0b0ae747743170de94 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 1 Dec 2020 16:18:57 +0200 Subject: [PATCH] Fix proposeSignedBlock() become sync. --- beacon_chain/rpc/beacon_api.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/rpc/beacon_api.nim b/beacon_chain/rpc/beacon_api.nim index 1593f2334..b0e8b3956 100644 --- a/beacon_chain/rpc/beacon_api.nim +++ b/beacon_chain/rpc/beacon_api.nim @@ -393,7 +393,7 @@ proc installBeaconApiHandlers*(rpcServer: RpcServer, node: BeaconNode) = # It was not integrated into the beacon node''s database. return 202 else: - let res = await proposeSignedBlock(node, head, AttachedValidator(), blck) + let res = proposeSignedBlock(node, head, AttachedValidator(), blck) if res == head: node.network.broadcast(getBeaconBlocksTopic(node.forkDigest), blck) # The block failed validation, but was successfully broadcast anyway.