Skip to content

Commit 0f28ec3

Browse files
authored
feat(docs): reentrancy of messages in receivers (#3375)
1 parent b103b67 commit 0f28ec3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/src/content/docs/book/receive.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ prev:
88

99
import { Badge } from '@astrojs/starlight/components';
1010

11-
TON is a distributed blockchain, which means that communication between contracts is performed by sending and receiving messages. The most common type of message is the _internal message_ — a message sent from one contract (or a wallet) to another.
11+
TON is a distributed blockchain, which means that communication between smart contracts is performed by sending and receiving messages. The most common type of message is the _internal message_ — a message sent from one contract (or a wallet) to another.
12+
13+
When processing an incoming message, no other message can interrupt the execution of a smart contract. On top of that, [message-sending functions](/book/send#message-sending-functions) and underlying TVM instructions do not deliver outgoing messages immediately but instead [queue them to be sent after the end of computations](/book/send#outbound-message-processing) in a separate phase of the current transaction. Thus, [reentrancy](https://en.wikipedia.org/wiki/Reentrancy_(computing)) of messages is not possible.
1214

1315
## Receive internal messages
1416

spell/cspell-list.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ prando
154154
quadtree
155155
quadtrees
156156
RANDU
157+
Reentrancy
157158
rangle
158159
rawslice
160+
reentrancy
159161
renamer
160162
replaceget
161163
respecifying

0 commit comments

Comments
 (0)