Set current time for block in RPC process (#1666)
to trigger automatic rebroadcast and election after e6ab82f5e6
Credits for finding bug to **Barnabas Liu**
This commit is contained in:
parent
70532b5268
commit
f29ffd7927
1 changed files with 3 additions and 1 deletions
|
@ -2491,7 +2491,9 @@ void nano::rpc_handler::process ()
|
|||
nano::process_return result;
|
||||
{
|
||||
auto transaction (node.store.tx_begin_write ());
|
||||
result = node.block_processor.process_one (transaction, block);
|
||||
// Set current time to trigger automatic rebroadcast and election
|
||||
nano::unchecked_info info (block, block->account (), nano::seconds_since_epoch (), nano::signature_verification::unknown);
|
||||
result = node.block_processor.process_one (transaction, info);
|
||||
}
|
||||
switch (result.code)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue