mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
bugfix in validator
This commit is contained in:
parent
54b40df4aa
commit
c300b4ff30
5 changed files with 93 additions and 44 deletions
|
@ -596,6 +596,36 @@ bool MsgProcessedUptoCollection::for_each_mcseqno(std::function<bool(ton::BlockS
|
|||
return true;
|
||||
}
|
||||
|
||||
std::ostream& MsgProcessedUpto::print(std::ostream& os) const {
|
||||
return os << "[" << ton::shard_to_str(shard) << "," << mc_seqno << "," << last_inmsg_lt << ","
|
||||
<< last_inmsg_hash.to_hex() << "]";
|
||||
}
|
||||
|
||||
std::ostream& MsgProcessedUptoCollection::print(std::ostream& os) const {
|
||||
os << "MsgProcessedUptoCollection of " << owner.to_str() << " = {";
|
||||
int i = 0;
|
||||
for (const auto& entry : list) {
|
||||
if (i++) {
|
||||
os << ", ";
|
||||
}
|
||||
os << entry;
|
||||
}
|
||||
os << "}";
|
||||
return os;
|
||||
}
|
||||
|
||||
std::string MsgProcessedUpto::to_str() const {
|
||||
std::ostringstream os;
|
||||
print(os);
|
||||
return os.str();
|
||||
}
|
||||
|
||||
std::string MsgProcessedUptoCollection::to_str() const {
|
||||
std::ostringstream os;
|
||||
print(os);
|
||||
return os.str();
|
||||
}
|
||||
|
||||
// unpacks some fields from EnqueuedMsg
|
||||
bool EnqueuedMsgDescr::unpack(vm::CellSlice& cs) {
|
||||
block::gen::EnqueuedMsg::Record enq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue