Skip to content

Commit

Permalink
Fixes ProtocolSettings (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and shargon committed May 16, 2019
1 parent ebf1c70 commit 75aa015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo/ProtocolSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Extensions.Configuration;
using Neo.SmartContract.Native;
using System.Linq;

namespace Neo
Expand Down Expand Up @@ -51,7 +52,7 @@ private ProtocolSettings(IConfigurationSection section)
"seed5.neo.org:10333"
};
this.SecondsPerBlock = section.GetValue("SecondsPerBlock", 15u);
this.LowPriorityThreshold = section.GetValue("LowPriorityThreshold", 100000L);
this.LowPriorityThreshold = (long)BigDecimal.Parse(section.GetValue("LowPriorityThreshold", "0.001"), NativeContract.GAS.Decimals).Value;
}
}
}

0 comments on commit 75aa015

Please sign in to comment.