parity-bitcoin
parity-bitcoin copied to clipboard
possible improvements, transaction meta
We have talked about that 2 days ago. We could add additional fields to TransactionMeta
pub struct TransactionMeta {
height: u32,
outputs: Vec<TransactionOutputMeta>,
}
pub struct TransactionOutputMeta {
output: TransactionOutput,
sigops: u16,
is_spent: bool,
}
https://github.com/bitcoin/bitcoin/blob/master/src/coins.h#L23
so outputs should be stored for unspent ones only? :)