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:
Sergey Kroshnin 2019-01-30 19:51:22 +03:00 committed by GitHub
commit f29ffd7927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{