Updated to use the state on the blocks
This commit is contained in:
		@@ -158,7 +158,7 @@ func (i *Console) ParseInput(input string) bool {
 | 
				
			|||||||
			fmt.Println(value)
 | 
								fmt.Println(value)
 | 
				
			||||||
		case "getaddr":
 | 
							case "getaddr":
 | 
				
			||||||
			encoded, _ := hex.DecodeString(tokens[1])
 | 
								encoded, _ := hex.DecodeString(tokens[1])
 | 
				
			||||||
			addr := i.ethereum.BlockManager.BlockChain().CurrentBlock.GetAddr(encoded)
 | 
								addr := i.ethereum.BlockManager.BlockChain().CurrentBlock.State().GetAccount(encoded)
 | 
				
			||||||
			fmt.Println("addr:", addr)
 | 
								fmt.Println("addr:", addr)
 | 
				
			||||||
		case "block":
 | 
							case "block":
 | 
				
			||||||
			encoded, _ := hex.DecodeString(tokens[1])
 | 
								encoded, _ := hex.DecodeString(tokens[1])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user