aboutsummaryrefslogtreecommitdiff
path: root/src/undo.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-04-25 11:29:19 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-05-26 13:33:39 -0700
commit7d991b55dbf0b0f6e21c0680ee3ebd09df09012f (patch)
tree78cebf3cfb52326c900393014c7f8b8a3f68210e /src/undo.h
parentc3aa0c11947dfd82702df276d39bb7f748dd83a1 (diff)
Store/allow tx metadata in all undo records
Previously, transaction metadata (height, coinbase or not, and before the previous commit also nVersion) was only stored for undo records that correspond to the last output of a transaction being spent. This only saves 2 bytes per undo record. Change this to storing this information for every undo record, and stop complaining for having it in non-last output spends. This means that undo dat written with this patch won't be readable by older versions anymore.
Diffstat (limited to 'src/undo.h')
-rw-r--r--src/undo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/undo.h b/src/undo.h
index d21b82e2ec..37a1c89f45 100644
--- a/src/undo.h
+++ b/src/undo.h
@@ -12,8 +12,7 @@
/** Undo information for a CTxIn
*
- * Contains the prevout's CTxOut being spent, and if this was the
- * last output of the affected transaction, its metadata as well
+ * Contains the prevout's CTxOut being spent, and its metadata as well
* (coinbase or not, height). Earlier versions also stored the transaction
* version.
*/