diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-14 10:34:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 10:34:02 +0800 |
commit | 25c845c700f533c436a33cdb445138a607f65a33 (patch) | |
tree | f0001d72226ecdf52efec6f10254dec926911029 | |
parent | d4228f32b436f551e736079fe0f590405077652c (diff) | |
download | dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar.gz dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar.bz2 dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar.lz dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar.xz dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.tar.zst dexon-consensus-25c845c700f533c436a33cdb445138a607f65a33.zip |
test: Fix a bug in test. (#55)
-rw-r--r-- | core/crypto_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go index 595d0e9..e59e66e 100644 --- a/core/crypto_test.go +++ b/core/crypto_test.go @@ -98,6 +98,7 @@ func (s *CryptoTestSuite) generateCompactionChain( var prevBlock *types.Block for idx := range blocks { block := s.newBlock(prevBlock) + prevBlock = block blocks[idx] = block var err error if idx > 0 { |