diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-31 00:02:43 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-31 00:02:43 +0800 |
commit | 34e937c9761f963ac4d3c9781d72ae92e54c0761 (patch) | |
tree | 9a4c78944acd6ee924eb86916f32d508de0b66a6 /ethereal/ext_app.go | |
parent | 2f5c95610feb77dd714bf9295d6127bef58f31bc (diff) | |
parent | 834803f1e8ce45040045359185c8b8d75f63de2c (diff) | |
download | dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.gz dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.zst dexon-34e937c9761f963ac4d3c9781d72ae92e54c0761.zip |
merge upstream
Diffstat (limited to 'ethereal/ext_app.go')
-rw-r--r-- | ethereal/ext_app.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ethereal/ext_app.go b/ethereal/ext_app.go index ac745ae37..697630504 100644 --- a/ethereal/ext_app.go +++ b/ethereal/ext_app.go @@ -4,6 +4,7 @@ import ( "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethpub" "github.com/ethereum/eth-go/ethreact" + "github.com/ethereum/eth-go/ethstate" "github.com/ethereum/eth-go/ethutil" "github.com/go-qml/qml" ) @@ -16,8 +17,8 @@ type AppContainer interface { Engine() *qml.Engine NewBlock(*ethchain.Block) - ObjectChanged(*ethchain.StateObject) - StorageChanged(*ethchain.StorageState) + ObjectChanged(*ethstate.StateObject) + StorageChanged(*ethstate.StorageState) NewWatcher(chan bool) } @@ -107,9 +108,9 @@ out: app.container.NewBlock(block) } case object := <-app.changeChan: - if stateObject, ok := object.Resource.(*ethchain.StateObject); ok { + if stateObject, ok := object.Resource.(*ethstate.StateObject); ok { app.container.ObjectChanged(stateObject) - } else if storageObject, ok := object.Resource.(*ethchain.StorageState); ok { + } else if storageObject, ok := object.Resource.(*ethstate.StorageState); ok { app.container.StorageChanged(storageObject) } } |