Changed block chain specific methods

This commit is contained in:
obscuren
2014-01-28 15:35:19 +01:00
parent 2619604549
commit 6ab368cf74
2 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ func (i *Console) ParseInput(input string) bool {
fmt.Printf("%q\n", d)
case "getaddr":
encoded, _ := hex.DecodeString(tokens[1])
d := i.ethereum.BlockManager.CurrentBlock.State().Get(string(encoded))
d := i.ethereum.BlockManager.BlockChain().CurrentBlock.State().Get(string(encoded))
if d != "" {
decoder := ethutil.NewRlpDecoder([]byte(d))
fmt.Println(decoder)