1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
crate::ix!();
/**
| Dumb serialization/storage-helper
| for BlockHeaderAndShortTxIDs and
| PartiallyDownloadedBlock
|
*/
pub struct PrefilledTransaction {
/**
| Used as an offset since last prefilled tx
| in CBlockHeaderAndShortTxIDs, as a proper
| transaction-in-block-index in
| PartiallyDownloadedBlock
*/
pub index: u16,
pub tx: TransactionRef,
}
lazy_static!{
/*
SERIALIZE_METHODS(PrefilledTransaction, obj)
{
READWRITE(COMPACTSIZE(obj.index),
Using<TransactionCompression>(obj.tx));
}
*/
}