• Sina Mahmoodi's avatar
    core/types: remove LogForStorage type (#23173) · 75226423
    Sina Mahmoodi authored
    The encoding of Log and LogForStorage is exactly the same
    now. After tracking it down it seems like #17106 changed the
    storage schema of logs to be the same as the consensus
    encoding.
    
    Support for the legacy format was dropped in #22852 and if
    I'm not wrong there's no reason anymore to have these two
    equivalent types.
    
    Since the RLP encoding simply contains the first three fields
    of Log, we can also avoid creating a temporary struct for
    encoding/decoding, and use the rlp:"-" tag in Log instead.
    
    Note: this is an API change in core/types. We decided it's OK
    to make this change because LogForStorage is an implementation
    detail of go-ethereum and the type has zero uses outside of
    package core/types.
    Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
    75226423
Name
Last commit
Last update
..
asm Loading commit data...
bloombits Loading commit data...
forkid Loading commit data...
rawdb Loading commit data...
state Loading commit data...
types Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
bench_test.go Loading commit data...
block_validator.go Loading commit data...
block_validator_test.go Loading commit data...
blockchain.go Loading commit data...
blockchain_insert.go Loading commit data...
blockchain_repair_test.go Loading commit data...
blockchain_sethead_test.go Loading commit data...
blockchain_snapshot_test.go Loading commit data...
blockchain_test.go Loading commit data...
blocks.go Loading commit data...
bloom_indexer.go Loading commit data...
chain_indexer.go Loading commit data...
chain_indexer_test.go Loading commit data...
chain_makers.go Loading commit data...
chain_makers_test.go Loading commit data...
dao_test.go Loading commit data...
error.go Loading commit data...
events.go Loading commit data...
evm.go Loading commit data...
gaspool.go Loading commit data...
gen_genesis.go Loading commit data...
gen_genesis_account.go Loading commit data...
genesis.go Loading commit data...
genesis_alloc.go Loading commit data...
genesis_test.go Loading commit data...
headerchain.go Loading commit data...
headerchain_test.go Loading commit data...
mkalloc.go Loading commit data...
rlp_test.go Loading commit data...
state_prefetcher.go Loading commit data...
state_processor.go Loading commit data...
state_processor_test.go Loading commit data...
state_transition.go Loading commit data...
tx_cacher.go Loading commit data...
tx_journal.go Loading commit data...
tx_list.go Loading commit data...
tx_list_test.go Loading commit data...
tx_noncer.go Loading commit data...
tx_pool.go Loading commit data...
tx_pool_test.go Loading commit data...
types.go Loading commit data...