Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
  • Loading branch information
turingczz committed Jun 21, 2023
1 parent 414da53 commit a33d1f4
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 65 deletions.
14 changes: 7 additions & 7 deletions js/protos/node/node_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -6463,7 +6463,7 @@ proto.node.BtfsScanTab.toObject = function(includeInstance, msg) {
contractAllStorageIncrease: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
contractFailStorageIncrease: jspb.Message.getFloatingPointFieldWithDefault(msg, 29, 0.0),
minersAllAmountIncrease: jspb.Message.getFieldWithDefault(msg, 30, 0),
storageLeftWhenContractIncrease: jspb.Message.getFieldWithDefault(msg, 31, 0),
storageLeftWhenContractIncrease: jspb.Message.getFloatingPointFieldWithDefault(msg, 31, 0.0),
onlineMinersNumberIncrease: jspb.Message.getFieldWithDefault(msg, 32, 0),
countryDistributeByContinent: jspb.Message.getFieldWithDefault(msg, 33, "")
};
Expand Down Expand Up @@ -6631,7 +6631,7 @@ proto.node.BtfsScanTab.deserializeBinaryFromReader = function(msg, reader) {
msg.setMinersAllAmountIncrease(value);
break;
case 31:
var value = /** @type {number} */ (reader.readInt64());
var value = /** @type {number} */ (reader.readDouble());
msg.setStorageLeftWhenContractIncrease(value);
break;
case 32:
Expand Down Expand Up @@ -6875,8 +6875,8 @@ proto.node.BtfsScanTab.serializeBinaryToWriter = function(message, writer) {
);
}
f = message.getStorageLeftWhenContractIncrease();
if (f !== 0) {
writer.writeInt64(
if (f !== 0.0) {
writer.writeDouble(
31,
f
);
Expand Down Expand Up @@ -7489,11 +7489,11 @@ proto.node.BtfsScanTab.prototype.setMinersAllAmountIncrease = function(value) {


/**
* optional int64 storage_left_when_contract_increase = 31;
* optional double storage_left_when_contract_increase = 31;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getStorageLeftWhenContractIncrease = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 0));
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 31, 0.0));
};


Expand All @@ -7502,7 +7502,7 @@ proto.node.BtfsScanTab.prototype.getStorageLeftWhenContractIncrease = function()
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setStorageLeftWhenContractIncrease = function(value) {
return jspb.Message.setProto3IntField(this, 31, value);
return jspb.Message.setProto3FloatField(this, 31, value);
};


Expand Down
107 changes: 50 additions & 57 deletions protos/node/node.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/node/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ message BtfsScanTab {
double contract_all_storage_increase = 28;
double contract_fail_storage_increase = 29;
int64 miners_all_amount_increase = 30;
int64 storage_left_when_contract_increase = 31;
double storage_left_when_contract_increase = 31;
int64 online_miners_number_increase = 32;
string country_distribute_by_continent = 33;
}
Expand Down

0 comments on commit a33d1f4

Please sign in to comment.