Skip to content

Commit

Permalink
Fix: CommitTransaction(): Transaction cannot be broadcast immediately…
Browse files Browse the repository at this point in the history
…, dust

Because IFC sets quantities below 1 coin as dust
For coins like IFC, quantities below 1 coin are meaningless.
In the code COIN is defined as 1 and CENT is defined as 0.01
  • Loading branch information
infinitecoin-project committed Apr 19, 2024
1 parent 00d263e commit 7d549e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wallet/wallet.h
Expand Up @@ -47,17 +47,17 @@ extern CAmount nMinimumInputThreshold;
//! -change addresses default
static const unsigned int DEFAULT_KEYPOOL_SIZE = 200;
//! -paytxfee default
static const CAmount DEFAULT_TRANSACTION_FEE = 100000000; // 1IFC
static const CAmount DEFAULT_TRANSACTION_FEE = COIN; // 1IFC
//! -fallbackfee default
static const CAmount DEFAULT_FALLBACK_FEE = 100000000; // 1IFC
static const CAmount DEFAULT_FALLBACK_FEE = COIN; // 1IFC
//! -mintxfee default
static const CAmount DEFAULT_TRANSACTION_MINFEE = 100000000; // 1IFC
static const CAmount DEFAULT_TRANSACTION_MINFEE = COIN; // 1IFC
//! minimum recommended increment for BIP 125 replacement txs
static const CAmount WALLET_INCREMENTAL_RELAY_FEE = 5000;
//! target minimum change amount
static const CAmount MIN_CHANGE = CENT;
static const CAmount MIN_CHANGE = COIN; // 1IFC
//! final minimum change amount after paying for fees
static const CAmount MIN_FINAL_CHANGE = MIN_CHANGE/2;
static const CAmount MIN_FINAL_CHANGE = COIN; // 1IFC
//! Default for -spendzeroconfchange
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
//! Default for -sendfreetransactions
Expand Down

1 comment on commit 7d549e1

@infinitecoin-project
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
This problem is not usually encountered, it is common in mining pools.
For example, the Yiimp mining pool is set up to send mining proceeds in batches to dozens of miners every hour.
It will happen that the transfer to an address is unsuccessful. In Debug, you can find that the characteristic of the unsuccessful transfer is that the change coin is less than 1 IFC.

Please sign in to comment.