Fix merge conflicts
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -102,8 +102,19 @@ func main() {
|
||||
}
|
||||
os.Exit(0)
|
||||
case ExportKey:
|
||||
key := ethutil.Config.Db.GetKeys()[0]
|
||||
logSys.Println(fmt.Sprintf("prvk: %x\n", key.PrivateKey))
|
||||
keyPair := ethutil.GetKeyRing().Get(0)
|
||||
fmt.Printf(`
|
||||
Generating new address and keypair.
|
||||
Please keep your keys somewhere save.
|
||||
|
||||
++++++++++++++++ KeyRing +++++++++++++++++++
|
||||
addr: %x
|
||||
prvk: %x
|
||||
pubk: %x
|
||||
++++++++++++++++++++++++++++++++++++++++++++
|
||||
save these words so you can restore your account later: %s
|
||||
`, keyPair.Address(), keyPair.PrivateKey, keyPair.PublicKey)
|
||||
|
||||
os.Exit(0)
|
||||
case ShowGenesis:
|
||||
logSys.Println(ethereum.BlockChain().Genesis())
|
||||
|
Reference in New Issue
Block a user