Skip to content

Commit

Permalink
Fix TestAcceptBlock UT for MinimumChainWork test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefff authored and whunmr committed Dec 21, 2018
1 parent 827e010 commit 46353c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logic/lblock/lblock_test.go
Expand Up @@ -233,6 +233,14 @@ func TestAcceptBlock(t *testing.T) {

fRequested := false
fNewBlock := false
fakeBlk := chain.GetInstance().GetParams().GenesisBlock
_, pos, err := AcceptBlock(fakeBlk, fRequested, nil, &fNewBlock)
if pos != nil {
t.Errorf("TestAcceptBlock test 0 check fake block failed. error:%v", err)
}

fRequested = true
fNewBlock = false

genesisBlk := chain.GetInstance().GetParams().GenesisBlock
genesisBlkIdx, pos, err := AcceptBlock(genesisBlk, fRequested, nil, &fNewBlock)
Expand Down

0 comments on commit 46353c3

Please sign in to comment.