diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-12 21:50:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-12 21:50:35 +0800 |
commit | ef6706696c39c77b20dc5127da8c62e89de39cf7 (patch) | |
tree | de5ab225e8c9f53ddf181a58e0f4652c720e4c2e /core/chain_manager_test.go | |
parent | 31a95151c9fb95c8527e419347556f455aebd1cb (diff) | |
download | go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar.gz go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar.bz2 go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar.lz go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar.xz go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.tar.zst go-tangerine-ef6706696c39c77b20dc5127da8c62e89de39cf7.zip |
Add additional extra database for non-protocol related data
* Add transaction to extra database after a successful block process
Diffstat (limited to 'core/chain_manager_test.go')
-rw-r--r-- | core/chain_manager_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index 91822f9e2..898d37f9c 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -257,7 +257,7 @@ func TestChainInsertions(t *testing.T) { var eventMux event.TypeMux chainMan := NewChainManager(db, db, &eventMux) txPool := NewTxPool(&eventMux) - blockMan := NewBlockProcessor(db, nil, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) chainMan.SetProcessor(blockMan) const max = 2 @@ -303,7 +303,7 @@ func TestChainMultipleInsertions(t *testing.T) { var eventMux event.TypeMux chainMan := NewChainManager(db, db, &eventMux) txPool := NewTxPool(&eventMux) - blockMan := NewBlockProcessor(db, nil, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) chainMan.SetProcessor(blockMan) done := make(chan bool, max) for i, chain := range chains { |