Removed the last block of the block chain

Added CurrentBlock to block manager
This commit is contained in:
obscuren
2014-01-25 15:57:35 +01:00
parent 42e8930b37
commit d753eb77ec
3 changed files with 3 additions and 3 deletions

View File

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