Skip to content

Commit

Permalink
Allow anycast destination address in masterchain (ton-blockchain#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese authored Nov 22, 2023
1 parent ba03657 commit 909e7db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crypto/block/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 909e7db

Please sign in to comment.