1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 19:22:37 +00:00

Temporary reduction of fine

This commit is contained in:
tolya-yanot 2021-02-17 16:19:56 +03:00 committed by main
parent b22611a123
commit b9b168eff0

View file

@ -3678,6 +3678,12 @@ bool compute_punishment(int interval, bool severe, td::RefInt256& fine, unsigned
if (interval <= 1000) {
return false; // no punishments for less than 1000 seconds
}
fine = td::make_refint(101 * 1000000000LL); // 101
fine_part = 0;
return true; // todo: (tolya-yanot) temporary reduction of fine
if (severe) {
fine = td::make_refint(2500 * 1000000000LL); // GR$2500
fine_part = (1 << 30); // 1/4 of stake
@ -3730,8 +3736,8 @@ td::Status TestNode::write_val_create_proof(TestNode::ValidatorLoadInfo& info1,
return td::Status::Error("non-positive time interval");
}
int severity = (severe ? 2 : 1);
td::RefInt256 fine = td::make_refint(1000000000);
unsigned fine_part = 0xffffffff / 16; // 1/16
td::RefInt256 fine = td::make_refint(101000000000);
unsigned fine_part = 0; // todo: (tolya-yanot) temporary reduction of fine // 0xffffffff / 16; // 1/16
if (!compute_punishment(interval, severe, fine, fine_part)) {
return td::Status::Error("cannot compute adequate punishment");
}