• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision7cc7f50fd6bc04f442e21ec9b1599a87f684dde5 (tree)
Zeit2020-02-25 09:43:36
Autoripqhjjybj <ipqhjjybj@qq.c...>
Commiteripqhjjybj

Log Message

remore not use code

Ändern Zusammenfassung

Diff

--- a/test/rollback_test.go
+++ b/test/rollback_test.go
@@ -10,8 +10,6 @@ import (
1010
1111 "github.com/bytom/vapor/account"
1212 "github.com/bytom/vapor/application/mov"
13- "github.com/bytom/vapor/asset"
14- "github.com/bytom/vapor/blockchain/pseudohsm"
1513 "github.com/bytom/vapor/config"
1614 cfg "github.com/bytom/vapor/config"
1715 "github.com/bytom/vapor/consensus"
@@ -25,7 +23,6 @@ import (
2523 "github.com/bytom/vapor/protocol/bc/types"
2624 "github.com/bytom/vapor/protocol/state"
2725 "github.com/bytom/vapor/testutil"
28- w "github.com/bytom/vapor/wallet"
2926 )
3027
3128 const (
@@ -161,21 +158,9 @@ func TestRollback(t *testing.T) {
161158 txPool := protocol.NewTxPool(store, []protocol.DustFilterer{movCore}, dispatcher)
162159 chain, err := protocol.NewChain(store, txPool, []protocol.Protocoler{movCore}, dispatcher)
163160
164- hsm, err := pseudohsm.New(cfg.CommonConfig.KeysDir())
165161 walletDB := dbm.NewDB("wallet", cfg.CommonConfig.DBBackend, cfg.CommonConfig.DBDir())
166- walletStore := database.NewWalletStore(walletDB)
167162 accountStore := database.NewAccountStore(walletDB)
168163 accounts := account.NewManager(accountStore, chain)
169- assets := asset.NewRegistry(walletDB, chain)
170- wallet, err := w.NewWallet(walletStore, accounts, assets, hsm, chain, dispatcher, cfg.CommonConfig.Wallet.TxIndex)
171- if err != nil {
172- t.Fatal("init NewWallet")
173- }
174-
175- // trigger rescan wallet
176- if cfg.CommonConfig.Wallet.Rescan {
177- wallet.RescanBlocks()
178- }
179164
180165 cases := []struct {
181166 desc string
Show on old repository browser