module Ethereum::CachedBlock
Public Class Methods
create_cached(blk)
click to toggle source
# File lib/ethereum/cached_block.rb, line 4 def self.create_cached(blk) blk.singleton_class.send :include, self blk end
Public Instance Methods
commit_state()
click to toggle source
# File lib/ethereum/cached_block.rb, line 17 def commit_state # do nothing end
full_hash()
click to toggle source
Calls superclass method
# File lib/ethereum/cached_block.rb, line 25 def full_hash @full_hash ||= super end
hash()
click to toggle source
# File lib/ethereum/cached_block.rb, line 21 def hash Utils.big_endian_to_int full_hash end
revert(*args)
click to toggle source
# File lib/ethereum/cached_block.rb, line 13 def revert(*args) raise NotImplementedError end
state_root=(*args)
click to toggle source
# File lib/ethereum/cached_block.rb, line 9 def state_root=(*args) raise NotImplementedError end
Private Instance Methods
set_account_item(*args)
click to toggle source
# File lib/ethereum/cached_block.rb, line 31 def set_account_item(*args) raise NotImplementedError end