aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/dev_console.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-15 03:34:21 +0800
committerobscuren <geffobscura@gmail.com>2014-05-15 03:34:21 +0800
commit942f552c620471602326c1ded54095c1cf41ed76 (patch)
treecbc1f21a967bb522afad6c891afb4c4628f16ab4 /ethereum/dev_console.go
parent809b4ae0f68da7a6904208662dc316cd669184fe (diff)
parenta73ae8727d38391c6975a9fa149043e6c69a2f30 (diff)
downloadgo-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar.gz
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar.bz2
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar.lz
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar.xz
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.tar.zst
go-tangerine-942f552c620471602326c1ded54095c1cf41ed76.zip
Merge branch 'release/poc5-rc6'poc5-rc6
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)