Skip to content

Commit

Permalink
Merge pull request #825 from skalenetwork/1135_broadcast
Browse files Browse the repository at this point in the history
1135 broadcast
  • Loading branch information
DmytroNazarenko authored Jan 8, 2024
2 parents 6b307ba + 77c1010 commit c16abaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chains/Schain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ void Schain::lockWithDeadLockCheck( const char* _functionName ) {
result = ( ( uint64_t ) getLastCommittedBlockID() ) - committedIDOld;
if ( !getNode()->isSyncOnlyNode() ) {
proposeNextBlock( true );
} else {
// on sync nodes we get candidate block and throw it away immediately
// this is to clean skaled queues
if (extFace) { // if extFace is null we are in consensus tests and there is no skaled
u256 stateRoot = 0;
extFace->pendingTransactions( getNode()->getMaxTransactionsPerBlock(), stateRoot );
}
}
}

Expand Down

0 comments on commit c16abaf

Please sign in to comment.