Add record to runtime pipeline

This commit is contained in:
Greg Fitzgerald 2019-01-15 15:36:56 -07:00
parent c9f57c2d96
commit e76f2ea89c
2 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@
| sigverify +--->| lock memory +--->| validate fee +--->| allocate accounts +--->
`-----------` `-------------` `--------------` `--------------------`
.------------. .---------. .--------------. .--------------.
--->| load data +--->| execute +--->| commit data +-->|unlock memory |
`------------` `---------` `--------------` `--------------`
.------------. .---------. .--------. .--------------. .--------------.
--->| load data +--->| execute +--->| record +--->| commit data +-->|unlock memory |
`------------` `---------` `--------` `--------------` `--------------`

View File

@ -44,6 +44,10 @@ The runtime enforces the following rules:
greater than or equal to the balances before the transaction.
4. All instructions in the transaction executed atomically. If one fails, all
account modifications are discarded.
5. Before committing the accounts, the transactions are tagged with a count
from the PoH service, indicating the time transaction processing completed.
If that time falls outside the leader's allotted slot, the transactions
are discarded.
Execution of the program involves mapping the program's public key to an
entrypoint which takes a pointer to the transaction, and an array of loaded