mirror of
				https://github.com/Qortal/qortal.git
				synced 2025-11-04 00:27:03 +00:00 
			
		
		
		
	Fixed logic bug in name registration fee calculation.
This commit is contained in:
		@@ -425,9 +425,8 @@ public class BlockChain {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public long getNameRegistrationUnitFeeAtTimestamp(long ourTimestamp) {
 | 
			
		||||
		// Scan through for reward at our height
 | 
			
		||||
		for (int i = 0; i < nameRegistrationUnitFees.size(); ++i)
 | 
			
		||||
			if (ourTimestamp >= nameRegistrationUnitFees.get(i).timestamp)
 | 
			
		||||
		for (int i = nameRegistrationUnitFees.size() - 1; i >= 0; --i)
 | 
			
		||||
			if (nameRegistrationUnitFees.get(i).timestamp <= ourTimestamp)
 | 
			
		||||
				return nameRegistrationUnitFees.get(i).fee;
 | 
			
		||||
 | 
			
		||||
		// Default to system-wide unit fee
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user