tests/block_test_util: ethash -> ubqhash

This commit is contained in:
Luke Williams 2019-02-25 19:13:04 +01:00
parent 6e718ed3de
commit 0c5076ae91

View file

@ -27,7 +27,7 @@ import (
"github.com/ubiq/go-ubiq/common"
"github.com/ubiq/go-ubiq/common/hexutil"
"github.com/ubiq/go-ubiq/common/math"
"github.com/ubiq/go-ubiq/consensus/ethash"
"github.com/ubiq/go-ubiq/consensus/ubqhash"
"github.com/ubiq/go-ubiq/core"
"github.com/ubiq/go-ubiq/core/state"
"github.com/ubiq/go-ubiq/core/types"
@ -105,7 +105,7 @@ func (t *BlockTest) Run(config *params.ChainConfig) error {
return fmt.Errorf("genesis block state root does not match test: computed=%x, test=%x", gblock.Root().Bytes()[:6], t.json.Genesis.StateRoot[:6])
}
chain, err := core.NewBlockChain(db, config, ethash.NewShared(), new(event.TypeMux), vm.Config{})
chain, err := core.NewBlockChain(db, config, ubqhash.NewShared(), new(event.TypeMux), vm.Config{})
if err != nil {
return err
}