ton-blockchain / ton

Main TON monorepo
Other
2.61k stars 722 forks source link

Typo in block.tlb #963

Open olegrok opened 2 months ago

olegrok commented 2 months ago

TLB states that tag for merkle_update is 2

https://github.com/ton-blockchain/ton/blob/4cfe1d1a96acf956e28e2bbc696a143489e23631/crypto/block/block.tlb#L279

But actually in code it's used as 4

E.g. in CellTraits:

https://github.com/ton-blockchain/ton/blob/4cfe1d1a96acf956e28e2bbc696a143489e23631/crypto/vm/cells/CellTraits.h#L35

or in code

https://github.com/ton-blockchain/ton/blob/4cfe1d1a96acf956e28e2bbc696a143489e23631/validator/impl/check-proof.cpp#L183

For merkle_proof everything seems to be correct - 3 is used everywhere.