Commit 7b7242b9 authored by obscuren's avatar obscuren

Proper keys

parent c2bb5e39
...@@ -38,7 +38,7 @@ func CreateKeyPair(force bool) { ...@@ -38,7 +38,7 @@ func CreateKeyPair(force bool) {
log.Printf("Your new address is %x\n", pub[12:]) log.Printf("Your new address is %x\n", pub[12:])
ethutil.Config.Db.Put([]byte("KeyRing"), prv) ethutil.Config.Db.Put([]byte("KeyRing"), ethutil.Encode([]interface{}{prv, pub}))
} }
} }
...@@ -108,7 +108,9 @@ func main() { ...@@ -108,7 +108,9 @@ func main() {
// Fake block mining. It broadcasts a new block every 5 seconds // Fake block mining. It broadcasts a new block every 5 seconds
go func() { go func() {
pow := &ethchain.EasyPow{} pow := &ethchain.EasyPow{}
addr, _ := ethutil.Config.Db.Get([]byte("KeyRing")) data, _ := ethutil.Config.Db.Get([]byte("KeyRing"))
keyRing := ethutil.NewValueFromBytes(data)
addr := keyRing.Get(1).Bytes()
for { for {
txs := ethereum.TxPool.Flush() txs := ethereum.TxPool.Flush()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment