Adding getter/setter to the weight_threshold field

master
Nelson R. Perez 2017-06-26 14:02:25 -05:00
parent ea0bab5179
commit f59cf1afa0
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ public class Authority implements GrapheneSerializable {
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){
if(keyAuths != null){
for(Address address : keyAuths.keySet()){