def put_confirmed_cross_shard_transaction_deposit_list( self, minor_block_hash, cross_shard_transaction_deposit_list): """Stores a mapping from minor block to the list of CrossShardTransactionDeposit confirmed""" if not self.env.cluster_config.ENABLE_TRANSACTION_HISTORY: return l = CrossShardTransactionList(cross_shard_transaction_deposit_list) self.db.put(b"xr_" + minor_block_hash, l.serialize())
def put_minor_block_xshard_tx_list(self, h, tx_list: CrossShardTransactionList): self.db.put(b"xShard_" + h, tx_list.serialize())