This commit is contained in:
obscuren
2015-03-09 17:55:01 +01:00
413 changed files with 57755 additions and 2191611 deletions

View File

@ -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)
}