aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/dev_console.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-14 20:04:43 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-14 20:04:43 +0800
commitc9db87277be495b3567b2831f2f88b8192edb20f (patch)
tree3cd3abb22e998fe4ffaf3d3dd3e5571c422d5d69 /ethereum/dev_console.go
parent2c7b625daaf062192db2fa604344f79c1bdbb232 (diff)
parentf18ec51cb3959cc662bfc7b84314cd1d3b1541b5 (diff)
downloadgo-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar.gz
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar.bz2
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar.lz
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar.xz
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.tar.zst
go-tangerine-c9db87277be495b3567b2831f2f88b8192edb20f.zip
Fix merge conflicts
Diffstat (limited to 'ethereum/dev_console.go')
-rw-r--r--ethereum/dev_console.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ethereum/dev_console.go b/ethereum/dev_console.go
index 9bdd58942..5941c03ab 100644
--- a/ethereum/dev_console.go
+++ b/ethereum/dev_console.go
@@ -173,8 +173,8 @@ func (i *Console) ParseInput(input string) bool {
} else {
tx := ethchain.NewTransactionMessage(recipient, ethutil.Big(tokens[2]), ethutil.Big(tokens[3]), ethutil.Big(tokens[4]), nil)
- key := ethutil.Config.Db.GetKeys()[0]
- tx.Sign(key.PrivateKey)
+ keyPair := ethutil.GetKeyRing().Get(0)
+ tx.Sign(keyPair.PrivateKey)
i.ethereum.TxPool().QueueTransaction(tx)
fmt.Printf("%x\n", tx.Hash())
@@ -207,8 +207,8 @@ func (i *Console) ParseInput(input string) bool {
contract := ethchain.NewContractCreationTx(ethutil.Big(tokens[0]), ethutil.Big(tokens[1]), ethutil.Big(tokens[1]), mainScript, initScript)
- key := ethutil.Config.Db.GetKeys()[0]
- contract.Sign(key.PrivateKey)
+ keyPair := ethutil.GetKeyRing().Get(0)
+ contract.Sign(keyPair.PrivateKey)
i.ethereum.TxPool().QueueTransaction(contract)