Skip to content

Commit

Permalink
Added tests for offlinestaking protocol; only relay blocks after full…
Browse files Browse the repository at this point in the history
… block validity has been checked
  • Loading branch information
davidjaenson committed Jun 4, 2020
1 parent 6e424a9 commit 1e42c34
Show file tree
Hide file tree
Showing 4 changed files with 610 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5605,8 +5605,8 @@ bool CChainState::AcceptBlock(const std::shared_ptr<const CBlock>& pblock, CVali

// Header is valid/has work, merkle tree and segwit merkle tree are good...RELAY NOW
// (but if it does not build on our best tip, let the SendMessages loop relay it)
if (!IsInitialBlockDownload() && m_chain.Tip() == pindex->pprev)
GetMainSignals().NewPoWValidBlock(pindex, pblock);
//if (!IsInitialBlockDownload() && m_chain.Tip() == pindex->pprev)
// GetMainSignals().NewPoWValidBlock(pindex, pblock);

// Write block to history file
if (fNewBlock) *fNewBlock = true;
Expand Down
Loading

0 comments on commit 1e42c34

Please sign in to comment.