Add timestamp field to transactions - allows multiple transactions with the same Ins/Outs

This commit is contained in:
2026-07-27 14:30:06 +02:00
parent 0e90f7d5db
commit f9c785b316
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -20,9 +20,10 @@ static inline bool Address_IsCoinbase(const uint8_t address[32]) {
return true;
}
// 160 bytes total for v1
// 168 bytes total for v1
#pragma pack(push, 1) // Ensure no padding for consistent file storage
typedef struct {
uint64_t timestamp; // Unix timestamp in seconds - not enforced, but used for uniqueness when everything else is the same.
uint64_t fee; // Rewarded to the miner; can be zero, but the miner may choose to ignore transactions with very low fees
uint64_t amount1;
uint64_t amount2;