good morning!!!!

Skip to content
Snippets Groups Projects
Commit cbd0b420 authored by Viktor Trón's avatar Viktor Trón
Browse files

put back checkTD and unskip incorrectTD test

parent f546b486
No related branches found
No related tags found
No related merge requests found
...@@ -785,10 +785,10 @@ func (self *BlockPool) checkTD(nodes ...*node) { ...@@ -785,10 +785,10 @@ func (self *BlockPool) checkTD(nodes ...*node) {
if n.td != nil { if n.td != nil {
plog.DebugDetailf("peer td %v =?= block td %v", n.td, n.block.Td) plog.DebugDetailf("peer td %v =?= block td %v", n.td, n.block.Td)
if n.td.Cmp(n.block.Td) != 0 { if n.td.Cmp(n.block.Td) != 0 {
//self.peers.peerError(n.blockBy, ErrIncorrectTD, "on block %x", n.hash) self.peers.peerError(n.blockBy, ErrIncorrectTD, "on block %x", n.hash)
//self.status.lock.Lock() self.status.lock.Lock()
//self.status.badPeers[n.blockBy]++ self.status.badPeers[n.blockBy]++
//self.status.lock.Unlock() self.status.lock.Unlock()
} }
} }
} }
......
...@@ -128,7 +128,7 @@ func TestErrInsufficientChainInfo(t *testing.T) { ...@@ -128,7 +128,7 @@ func TestErrInsufficientChainInfo(t *testing.T) {
} }
func TestIncorrectTD(t *testing.T) { func TestIncorrectTD(t *testing.T) {
t.Skip() // @zelig this one requires fixing for the TD // t.Skip() // @zelig this one requires fixing for the TD
test.LogInit() test.LogInit()
_, blockPool, blockPoolTester := newTestBlockPool(t) _, blockPool, blockPoolTester := newTestBlockPool(t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment