Skip to content

Commit

Permalink
Release62: P2P Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainDero committed Mar 31, 2022
1 parent 63f1884 commit a66d3d5
Show file tree
Hide file tree
Showing 14 changed files with 899 additions and 15 deletions.
4 changes: 2 additions & 2 deletions blockchain/miner_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ func (chain *Blockchain) Accept_new_block(tstamp uint64, miniblock_blob []byte)
return
}

result = true // block's pow is valid

// if we reach here, everything looks ok, we can complete the block we have, lets add the final piece
bl.MiniBlocks = append(bl.MiniBlocks, mbl)

Expand Down Expand Up @@ -571,6 +569,8 @@ func (chain *Blockchain) Accept_new_block(tstamp uint64, miniblock_blob []byte)

logger.V(1).Info("Block successfully accepted, Notifying Network", "blid", bl.GetHash(), "height", bl.Height)

result = true // block's pow is valid

if !chain.simulator { // if not in simulator mode, relay block to the chain
chain.P2P_Block_Relayer(cbl, 0) // lets relay the block to network
}
Expand Down
Loading

0 comments on commit a66d3d5

Please sign in to comment.