eth-gas-proxy

Middleware to selectively override EVM gas heuristics
git clone git://holbrook.no/eth-gas-proxy.git
Info | Log | Files | Refs

mem.py (211B)


      1 from .base import Cache
      2 
      3 class MemCache(Cache):
      4 
      5 
      6     def __init__(self):
      7         self.lastvalue = 0
      8 
      9 
     10     def get(self):
     11         return self.lastvalue
     12 
     13 
     14     def set(self, value):
     15         self.lastvalue = value