aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-06-12 19:47:19 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-06-12 19:47:19 +0100
commitd2f6d2a95a9f6c1632c1ed3b5b5b67a49eb71d6b (patch)
tree2675bdd2c5101fcc85b8503985cd368b6d92c331 /contrib
parentc92fd638860c5b4477851fb3790bc8068f808d3e (diff)
downloadbitcoin-d2f6d2a95a9f6c1632c1ed3b5b5b67a49eb71d6b.tar.xz
Use `int32_t` type for most transaction size/weight values
This change gets rid of a few casts and makes the following commit diff smaller.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/tracing/mempool_monitor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/tracing/mempool_monitor.py b/contrib/tracing/mempool_monitor.py
index 9d427d4632..afb5e60372 100755
--- a/contrib/tracing/mempool_monitor.py
+++ b/contrib/tracing/mempool_monitor.py
@@ -27,7 +27,7 @@ PROGRAM = """
struct added_event
{
u8 hash[HASH_LENGTH];
- u64 vsize;
+ s32 vsize;
s64 fee;
};
@@ -35,7 +35,7 @@ struct removed_event
{
u8 hash[HASH_LENGTH];
char reason[MAX_REMOVAL_REASON_LENGTH];
- u64 vsize;
+ s32 vsize;
s64 fee;
u64 entry_time;
};
@@ -49,11 +49,11 @@ struct rejected_event
struct replaced_event
{
u8 replaced_hash[HASH_LENGTH];
- u64 replaced_vsize;
+ s32 replaced_vsize;
s64 replaced_fee;
u64 replaced_entry_time;
u8 replacement_hash[HASH_LENGTH];
- u64 replacement_vsize;
+ s32 replacement_vsize;
s64 replacement_fee;
};