|
|
@ -29,7 +29,7 @@ using namespace std; |
|
|
|
using namespace dev; |
|
|
|
using namespace dev::eth; |
|
|
|
|
|
|
|
ImportResult BlockQueue::import(bytesConstRef _block, BlockChain const& _bc) |
|
|
|
ImportResult BlockQueue::import(bytesConstRef _block, BlockChain const& _bc, bool _isOurs) |
|
|
|
{ |
|
|
|
// Check if we already know this block.
|
|
|
|
h256 h = BlockInfo::headerHash(_block); |
|
|
@ -70,7 +70,7 @@ ImportResult BlockQueue::import(bytesConstRef _block, BlockChain const& _bc) |
|
|
|
UpgradeGuard ul(l); |
|
|
|
|
|
|
|
// Check it's not in the future
|
|
|
|
if (bi.timestamp > (u256)time(0)) |
|
|
|
if (bi.timestamp > (u256)time(0) && !_isOurs) |
|
|
|
{ |
|
|
|
m_future.insert(make_pair((unsigned)bi.timestamp, _block.toBytes())); |
|
|
|
cblockq << "OK - queued for future."; |
|
|
|