mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-14 20:22:19 +00:00
Allow anycast destination address in masterchain (#807)
This commit is contained in:
parent
ba03657617
commit
909e7dbdfc
1 changed files with 0 additions and 5 deletions
|
@ -1976,11 +1976,6 @@ bool Transaction::check_rewrite_dest_addr(Ref<vm::CellSlice>& dest_addr, const A
|
|||
}
|
||||
if (rec.anycast->size() > 1) {
|
||||
// destination address is an anycast
|
||||
if (rec.workchain_id == ton::masterchainId) {
|
||||
// anycast addresses disabled in masterchain
|
||||
LOG(DEBUG) << "masterchain destination address has an anycast field";
|
||||
return false;
|
||||
}
|
||||
vm::CellSlice cs{*rec.anycast};
|
||||
int d = (int)cs.fetch_ulong(6) - 32;
|
||||
if (d <= 0 || d > 30) {
|
||||
|
|
Loading…
Reference in a new issue