core: check negative value transactions. Closes #1109

This commit is contained in:
obscuren
2015-05-26 19:50:42 +02:00
parent a55f408c10
commit c37389f19c
4 changed files with 20 additions and 2 deletions

View File

@ -70,7 +70,6 @@ func (pm *ProtocolManager) processBlocks() error {
// Try to inset the blocks, drop the originating peer if there's an error
index, err := pm.chainman.InsertChain(raw)
if err != nil {
glog.V(logger.Warn).Infof("Block insertion failed: %v", err)
pm.removePeer(blocks[index].OriginPeer)
pm.downloader.Cancel()
return err