From f629b618211989e85fe74a5bc7b56960050af6a4 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 7 Jan 2022 13:40:00 -0500 Subject: [PATCH] add crash description --- docs/tutorials/go-built-in.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/tutorials/go-built-in.md b/docs/tutorials/go-built-in.md index f71a03d2f..7d934c017 100644 --- a/docs/tutorials/go-built-in.md +++ b/docs/tutorials/go-built-in.md @@ -315,6 +315,11 @@ func (app *KVStoreApplication) Commit() abcitypes.ResponseCommit { } ``` +You may also have noticed that the application we are writing will _crash_ if it receives an +unexpected error from the database during the `DeliverTx` or `Commit` methods. +This is not an accident. If the application received an error from the database, +there is no deterministic way for it to make progress so the only safe option is to terminate. + ### 1.3.3 Query Method We'll want to be able to determine if a transaction was committed to the state-machine.