diff --git a/jsonrpc/endpoints_eth.go b/jsonrpc/endpoints_eth.go index ddf914f6a3..2569e72ede 100644 --- a/jsonrpc/endpoints_eth.go +++ b/jsonrpc/endpoints_eth.go @@ -111,6 +111,7 @@ func (e *EthEndpoints) Call(arg *types.TxArgs, blockArg *types.BlockNumberOrHash // X Layer LRU if lru_xlayer.GetConfig().Enable { + log.Infof("LRU cache is enabled") ret, errValue, ok := getCallResultFromLRU(blockToProcess, sender, tx) if ok { log.Infof("Call result from LRU cache: %v, %v", ret, errValue) diff --git a/jsonrpc/endpoints_eth_lru_xlayer.go b/jsonrpc/endpoints_eth_lru_xlayer.go index 87206386e4..48dab1edfe 100644 --- a/jsonrpc/endpoints_eth_lru_xlayer.go +++ b/jsonrpc/endpoints_eth_lru_xlayer.go @@ -36,6 +36,7 @@ func getCallResultFromLRU(blockNumber *uint64, sender common.Address, tx *ethtyp func setCallResultToLRU(blockNumber *uint64, sender common.Address, tx *ethtypes.Transaction, value interface{}, errValue types.Error) { retKey, errKey := getCallKey(blockNumber, sender, tx) + log.Infof("setCallResultToLRU retKey: %s, errKey: %s", retKey, errKey) err := lru_xlayer.GetLRU().Set(retKey, value) if err != nil { log.Debugf("Failed to set value to LRU cache call ret: %v", err)