aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 00:55:01 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 00:55:01 +0800
commit8560004f380dc688a1171ad5aeffa593aae41193 (patch)
treefea395acf042b51e97a86e2c4cbcf8c16b2912b7 /rpc/api.go
parent9723191b19f6ddc12f0c3376ede7529b2d72e6a2 (diff)
parent676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff)
downloadgo-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.gz
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.bz2
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.lz
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.xz
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.zst
go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.zip
wip
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go17
1 files changed, 2 insertions, 15 deletions
diff --git a/rpc/api.go b/rpc/api.go
index ddba422f8..617e4998d 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -2,7 +2,6 @@ package rpc
import (
"encoding/json"
- "fmt"
"math/big"
"strings"
"sync"
@@ -16,7 +15,6 @@ import (
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/state"
- "github.com/ethereum/go-ethereum/ui"
"github.com/ethereum/go-ethereum/xeth"
)
@@ -76,7 +74,7 @@ func NewEthereumApi(eth *xeth.XEth) *EthereumApi {
// block = chain.GetBlockByNumber(uint64(num))
// if block != nil {
-// self.useState(state.New(block.Root(), self.xeth().Backend().Db()))
+// self.useState(state.New(block.Root(), self.xeth().Backend().StateDb()))
// } else {
// self.useState(chain.State())
// }
@@ -649,17 +647,6 @@ func (self *EthereumApi) useState(statedb *state.StateDB) {
self.eth = self.eth.UseState(statedb)
}
-func t(f ui.Frontend) {
- // Call the password dialog
- ret, err := f.Call("PasswordDialog")
- if err != nil {
- fmt.Println(err)
- }
- // Get the first argument
- t, _ := ret.Get(0)
- fmt.Println("return:", t)
-}
-
func toFilterOptions(options *FilterOptions) core.FilterOptions {
var opts core.FilterOptions
@@ -678,7 +665,7 @@ func toFilterOptions(options *FilterOptions) core.FilterOptions {
opts.Earliest = options.Earliest
opts.Latest = options.Latest
- opts.Topics = make([][]byte, len(options.Topic))
+ opts.Topics = make([][][]byte, len(options.Topic))
for i, topic := range options.Topic {
opts.Topics[i] = fromHex(topic)
}