1
0
Fork 0
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:
SpyCheese 2023-11-22 10:25:53 +03:00 committed by GitHub
parent ba03657617
commit 909e7dbdfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {