Commit 29f92bed authored by Karl Floersch's avatar Karl Floersch

Finish custom encoding

parent d0831b40
...@@ -46,7 +46,6 @@ interface iOVM_CanonicalTransactionChain is iOVM_BaseChain { ...@@ -46,7 +46,6 @@ interface iOVM_CanonicalTransactionChain is iOVM_BaseChain {
uint256 numSubsequentQueueTransactions; uint256 numSubsequentQueueTransactions;
uint256 timestamp; uint256 timestamp;
uint256 blockNumber; uint256 blockNumber;
uint256 index;
} }
struct TransactionChainElement { struct TransactionChainElement {
...@@ -96,17 +95,17 @@ interface iOVM_CanonicalTransactionChain is iOVM_BaseChain { ...@@ -96,17 +95,17 @@ interface iOVM_CanonicalTransactionChain is iOVM_BaseChain {
uint256 _numQueuedTransactions uint256 _numQueuedTransactions
) external; ) external;
// /** /**
// * Allows the sequencer to append a batch of transactions. * Allows the sequencer to append a batch of transactions.
// * @param _transactions Array of raw transaction data. * param _shouldStartAtBatch Specific batch we expect to start appending to.
// * @param _contexts Array of batch contexts. * param _totalElementsToAppend Total number of batch elements we expect to append.
// * @param _shouldStartAtBatch Specific batch we expect to start appending to. * param _contexts Array of batch contexts.
// * @param _totalElementsToAppend Total number of batch elements we expect to append. * param _transactionDataFields Array of raw transaction data.
// */ */
function appendSequencerBatch( function appendSequencerBatch( // USES CUSTOM ENCODING FOR EFFICIENCY PURPOSES
// uint256 _shouldStartAtBatch, // uint40 _shouldStartAtBatch,
// uint _totalElementsToAppend, // uint24 _totalElementsToAppend,
// BatchContext[] memory _contexts, // BatchContext[] _contexts,
// bytes[] memory _transactions // bytes[] _transactionDataFields
) external; ) external;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment