parity-bitcoin icon indicating copy to clipboard operation
parity-bitcoin copied to clipboard

possible improvements, transaction meta

Open debris opened this issue 8 years ago • 2 comments

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,
}

debris avatar Dec 13 '16 14:12 debris

https://github.com/bitcoin/bitcoin/blob/master/src/coins.h#L23

svyatonik avatar Dec 13 '16 14:12 svyatonik

so outputs should be stored for unspent ones only? :)

NikVolf avatar Dec 13 '16 16:12 NikVolf