Add tx fee to the db and track for webhooks (#71)

This commit is contained in:
Lee *!* Clagett
2023-06-20 10:11:34 -04:00
committed by Lee *!* Clagett
parent e1bd9541f1
commit ea35f88c4c
4 changed files with 94 additions and 4 deletions

View File

@@ -196,9 +196,10 @@ namespace db
crypto::hash8 short_; //!< Decrypted short payment id
crypto::hash long_; //!< Long version of payment id (always decrypted)
} payment_id;
std::uint64_t fee; //!< Total fee for transaction
};
static_assert(
sizeof(output) == 8 + 32 + (8 * 3) + (4 * 2) + 32 + (8 * 2) + (32 * 3) + 7 + 1 + 32,
sizeof(output) == 8 + 32 + (8 * 3) + (4 * 2) + 32 + (8 * 2) + (32 * 3) + 7 + 1 + 32 + 8,
"padding in output"
);
void write_bytes(wire::writer&, const output&);