Skip to content

Commit

Permalink
Merge pull request #182 from TRON-US/BTFS-2721-scan-data
Browse files Browse the repository at this point in the history
add miners_all_amount when btfsscan
  • Loading branch information
NathanQiu666 authored May 7, 2021
2 parents 19007c0 + a83522c commit a0a606a
Show file tree
Hide file tree
Showing 6 changed files with 427 additions and 286 deletions.
32 changes: 31 additions & 1 deletion js/protos/node/node_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5926,7 +5926,8 @@ proto.node.BtfsScanTab.toObject = function(includeInstance, msg) {
contractFailStorage: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
storageLeftWhenContract: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
superOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0)
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0),
minersAllAmount: jspb.Message.getFieldWithDefault(msg, 19, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -6041,6 +6042,10 @@ proto.node.BtfsScanTab.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {number} */ (reader.readUint32());
msg.setNewOnlineMinersCount(value);
break;
case 19:
var value = /** @type {number} */ (reader.readUint32());
msg.setMinersAllAmount(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -6192,6 +6197,13 @@ proto.node.BtfsScanTab.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getMinersAllAmount();
if (f !== 0) {
writer.writeUint32(
19,
f
);
}
};


Expand Down Expand Up @@ -6565,6 +6577,24 @@ proto.node.BtfsScanTab.prototype.setNewOnlineMinersCount = function(value) {
};


/**
* optional uint32 miners_all_amount = 19;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getMinersAllAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
};


/**
* @param {number} value
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setMinersAllAmount = function(value) {
return jspb.Message.setProto3IntField(this, 19, value);
};





Expand Down
32 changes: 31 additions & 1 deletion js/protos/status/status_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ proto.status.BtfsScanAggrReq.toObject = function(includeInstance, msg) {
contractFailStorage: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
storageLeftWhenContract: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
superOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0)
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0),
minersAllAmount: jspb.Message.getFieldWithDefault(msg, 19, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -861,6 +862,10 @@ proto.status.BtfsScanAggrReq.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {number} */ (reader.readUint32());
msg.setNewOnlineMinersCount(value);
break;
case 19:
var value = /** @type {number} */ (reader.readUint32());
msg.setMinersAllAmount(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1012,6 +1017,13 @@ proto.status.BtfsScanAggrReq.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getMinersAllAmount();
if (f !== 0) {
writer.writeUint32(
19,
f
);
}
};


Expand Down Expand Up @@ -1385,6 +1397,24 @@ proto.status.BtfsScanAggrReq.prototype.setNewOnlineMinersCount = function(value)
};


/**
* optional uint32 miners_all_amount = 19;
* @return {number}
*/
proto.status.BtfsScanAggrReq.prototype.getMinersAllAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
};


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



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

0 comments on commit a0a606a

Please sign in to comment.