cmd,eth,rpc,tests: default coinbase

This commit is contained in:
Jeffrey Wilcke
2015-07-07 10:32:05 +02:00
parent d764bd0584
commit 35cd355c14
10 changed files with 87 additions and 51 deletions

View File

@@ -168,16 +168,6 @@ func (self *Transaction) ToString() string {
return self.ref.String()
}
type Key struct {
Address string `json:"address"`
PrivateKey string `json:"privateKey"`
PublicKey string `json:"publicKey"`
}
func NewKey(key *crypto.KeyPair) *Key {
return &Key{common.ToHex(key.Address()), common.ToHex(key.PrivateKey), common.ToHex(key.PublicKey)}
}
type PReceipt struct {
CreatedContract bool `json:"createdContract"`
Address string `json:"address"`

View File

@@ -504,15 +504,6 @@ func (self *XEth) IsContract(address string) bool {
return len(self.State().SafeGet(address).Code()) > 0
}
func (self *XEth) SecretToAddress(key string) string {
pair, err := crypto.NewKeyPairFromSec(common.FromHex(key))
if err != nil {
return ""
}
return common.ToHex(pair.Address())
}
func (self *XEth) UninstallFilter(id int) bool {
defer self.filterManager.UninstallFilter(id)