Skip to content

Commit

Permalink
Merge pull request #186 from TRON-US/big_miner_total_miner
Browse files Browse the repository at this point in the history
support big_miner and total_miner
  • Loading branch information
laocheng-cheng authored Sep 15, 2021
2 parents 10b3b50 + 52b6e87 commit c8b2053
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 81 deletions.
62 changes: 61 additions & 1 deletion js/protos/status/status_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,9 @@ proto.status.BtfsScanAggrReq.toObject = function(includeInstance, msg) {
storageLeftWhenContract: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
superOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0),
minersAllAmount: jspb.Message.getFieldWithDefault(msg, 19, 0)
minersAllAmount: jspb.Message.getFieldWithDefault(msg, 19, 0),
totalMiners: jspb.Message.getFieldWithDefault(msg, 20, 0),
bigMiners: jspb.Message.getFieldWithDefault(msg, 21, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -866,6 +868,14 @@ proto.status.BtfsScanAggrReq.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {number} */ (reader.readInt64());
msg.setMinersAllAmount(value);
break;
case 20:
var value = /** @type {number} */ (reader.readInt64());
msg.setTotalMiners(value);
break;
case 21:
var value = /** @type {number} */ (reader.readInt64());
msg.setBigMiners(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1024,6 +1034,20 @@ proto.status.BtfsScanAggrReq.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getTotalMiners();
if (f !== 0) {
writer.writeInt64(
20,
f
);
}
f = message.getBigMiners();
if (f !== 0) {
writer.writeInt64(
21,
f
);
}
};


Expand Down Expand Up @@ -1415,6 +1439,42 @@ proto.status.BtfsScanAggrReq.prototype.setMinersAllAmount = function(value) {
};


/**
* optional int64 total_miners = 20;
* @return {number}
*/
proto.status.BtfsScanAggrReq.prototype.getTotalMiners = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
};


/**
* @param {number} value
* @return {!proto.status.BtfsScanAggrReq} returns this
*/
proto.status.BtfsScanAggrReq.prototype.setTotalMiners = function(value) {
return jspb.Message.setProto3IntField(this, 20, value);
};


/**
* optional int64 big_miners = 21;
* @return {number}
*/
proto.status.BtfsScanAggrReq.prototype.getBigMiners = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
};


/**
* @param {number} value
* @return {!proto.status.BtfsScanAggrReq} returns this
*/
proto.status.BtfsScanAggrReq.prototype.setBigMiners = function(value) {
return jspb.Message.setProto3IntField(this, 21, value);
};



/**
* List of repeated fields within this message type.
Expand Down
Loading

0 comments on commit c8b2053

Please sign in to comment.