Adding getter/setter to the weight_threshold field

This commit is contained in:
Nelson R. Perez 2017-06-26 14:02:25 -05:00
parent ea0bab5179
commit f59cf1afa0

View file

@ -59,6 +59,14 @@ public class Authority implements GrapheneSerializable {
this.account_auths = new HashMap<>(); this.account_auths = new HashMap<>();
} }
public long getWeightThreshold() {
return weight_threshold;
}
public void setWeightThreshold(long weight_threshold) {
this.weight_threshold = weight_threshold;
}
public void setKeyAuthorities(HashMap<Address, Long> keyAuths){ public void setKeyAuthorities(HashMap<Address, Long> keyAuths){
if(keyAuths != null){ if(keyAuths != null){
for(Address address : keyAuths.keySet()){ for(Address address : keyAuths.keySet()){