forked from Qortal/qortal
Fixed logic bug in name registration fee calculation.
This commit is contained in:
parent
64e102a8c6
commit
cca5bac30a
@ -425,9 +425,8 @@ public class BlockChain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public long getNameRegistrationUnitFeeAtTimestamp(long ourTimestamp) {
|
public long getNameRegistrationUnitFeeAtTimestamp(long ourTimestamp) {
|
||||||
// Scan through for reward at our height
|
for (int i = nameRegistrationUnitFees.size() - 1; i >= 0; --i)
|
||||||
for (int i = 0; i < nameRegistrationUnitFees.size(); ++i)
|
if (nameRegistrationUnitFees.get(i).timestamp <= ourTimestamp)
|
||||||
if (ourTimestamp >= nameRegistrationUnitFees.get(i).timestamp)
|
|
||||||
return nameRegistrationUnitFees.get(i).fee;
|
return nameRegistrationUnitFees.get(i).fee;
|
||||||
|
|
||||||
// Default to system-wide unit fee
|
// Default to system-wide unit fee
|
||||||
|
Loading…
x
Reference in New Issue
Block a user