1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

updated tonlib

- updated tonlib
- updated validator
- updated documentation
- first version of http over rldp proxy
This commit is contained in:
ton 2020-02-06 21:56:46 +04:00
parent 53ec9684bd
commit 77842f9b63
128 changed files with 10555 additions and 2285 deletions

View file

@ -14,7 +14,7 @@
You should have received a copy of the GNU Lesser General Public License
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
Copyright 2017-2019 Telegram Systems LLP
Copyright 2017-2020 Telegram Systems LLP
*/
#include "validator-session-state.h"
#include "td/utils/overloaded.h"
@ -37,7 +37,7 @@ td::StringBuilder& operator<<(td::StringBuilder& sb, const ton::ton_api::validat
sb << "APPROVE(" << obj.round_ << "," << obj.candidate_ << ")";
},
[&](const ton::ton_api::validatorSession_message_rejectedBlock& obj) {
sb << "COMMIT(" << obj.round_ << "," << obj.candidate_ << ")";
sb << "REJECT(" << obj.round_ << "," << obj.candidate_ << ")";
},
[&](const ton::ton_api::validatorSession_message_commit& obj) {
sb << "COMMIT(" << obj.round_ << "," << obj.candidate_ << ")";
@ -1419,6 +1419,10 @@ const ValidatorSessionState* ValidatorSessionState::action(ValidatorSessionDescr
const ValidatorSessionState* state, td::uint32 src_idx,
td::uint32 att,
const ton_api::validatorSession_round_Message* action) {
if (action) {
VLOG(VALIDATOR_SESSION_DEBUG) << "[validator session][node " << desc.get_source_id(src_idx) << "][" << action
<< "]: applying message " << *action;
}
if (att < state->att_->at(src_idx)) {
VLOG(VALIDATOR_SESSION_WARNING) << "[validator session][node " << desc.get_source_id(src_idx) << "][" << action
<< "]: invalid message: bad ts: times goes back: " << state->att_->at(src_idx)