Fix minimum transaction fee calculation mismatch between CreateTransaction and CreateBlock
This commit is contained in:
8
main.h
8
main.h
@@ -574,6 +574,13 @@ public:
|
||||
return nValueOut;
|
||||
}
|
||||
|
||||
static bool AllowFree(double dPriority)
|
||||
{
|
||||
// Large (in bytes) low-priority (new, small-coin) transactions
|
||||
// need a fee.
|
||||
return dPriority > COIN * 144 / 250;
|
||||
}
|
||||
|
||||
int64 GetMinFee(unsigned int nBlockSize=1, bool fAllowFree=true) const
|
||||
{
|
||||
// Base fee is 1 cent per kilobyte
|
||||
@@ -998,6 +1005,7 @@ public:
|
||||
{
|
||||
return !(a == b);
|
||||
}
|
||||
int GetDepthInMainChain() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user