From 37177fb061d057419a70b164567a5e3f238663b3 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Tue, 31 Mar 2015 14:08:21 -0700 Subject: [PATCH] added DumpStorage RPC command --- rpc/core/accounts.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/rpc/core/accounts.go b/rpc/core/accounts.go index 3c6262540..55c9b38e2 100644 --- a/rpc/core/accounts.go +++ b/rpc/core/accounts.go @@ -43,14 +43,6 @@ func ListAccounts() (*ResponseListAccounts, error) { return &ResponseListAccounts{blockHeight, accounts}, nil } -func GetStorage(address, storage []byte) (*ResponseGetStorage, error) { - cache := mempoolReactor.Mempool.GetCache() - addr, slot := RightPadWord256(address), RightPadWord256(storage) - value := cache.GetStorage(addr, slot) - fmt.Printf("STORAGE: %x, %x, %x\n", addr, slot, value) - return &ResponseGetStorage{storage, value.Bytes()}, nil -} - func DumpStorage(addr []byte) (*ResponseDumpStorage, error) { state := consensusState.GetState() account := state.GetAccount(addr)