• Joshua Gutow's avatar
    op-node: Isolated channel frame serialization (#3125) · 9673eca7
    Joshua Gutow authored
    * op-node: Add channel frame serialization
    
    This creates a struct & serialization & deserialization methods
    for it. This is to replace the current serialization code which
    is embedded in more complex methods.
    
    The reading is done with a reader API instead of a bytes API because
    the frame is variable length & is originally merged together with
    other frames without a clean division. The writing API uses a
    writer for simplicity (but is not required).
    
    This lays the groundwork for easily switching to fixed int sizes.
    
    * op-node: Use channel frame deserialization
    
    This uses the new channel frame object for deserialization. Some
    of the API interaction is a little weird in the channel_bank
    IngestData loop, but the code is not able to be easily tested and
    upgraded.
    
    * op-node: Use channel frame in serialization
    
    This uses the default implementation (through a struct) rather
    than the custom logic. It might make sense to use a slightly
    different API for serialization than deserialization given the
    inputs, but splitting out the logic into it's own function is
    still an improvement.
    Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    9673eca7
Name
Last commit
Last update
..
attributes.go Loading commit data...
attributes_queue.go Loading commit data...
attributes_queue_test.go Loading commit data...
attributes_test.go Loading commit data...
batch.go Loading commit data...
batch_queue.go Loading commit data...
batch_queue_test.go Loading commit data...
batch_test.go Loading commit data...
batches.go Loading commit data...
batches_test.go Loading commit data...
calldata_source.go Loading commit data...
calldata_source_test.go Loading commit data...
channel_bank.go Loading commit data...
channel_bank_test.go Loading commit data...
channel_frame.go Loading commit data...
channel_in.go Loading commit data...
channel_in_reader.go Loading commit data...
channel_out.go Loading commit data...
deposit_log.go Loading commit data...
deposit_log_test.go Loading commit data...
deposit_source.go Loading commit data...
deposits.go Loading commit data...
doc.go Loading commit data...
engine_consolidate.go Loading commit data...
engine_queue.go Loading commit data...
engine_update.go Loading commit data...
fuzz_parsers_test.go Loading commit data...
l1_block_info.go Loading commit data...
l1_block_info_test.go Loading commit data...
l1_retrieval.go Loading commit data...
l1_retrieval_test.go Loading commit data...
l1_traversal.go Loading commit data...
l1_traversal_test.go Loading commit data...
params.go Loading commit data...
payload_util.go Loading commit data...
pipeline.go Loading commit data...
pipeline_test.go Loading commit data...
progress.go Loading commit data...