@@ -39,12 +39,15 @@ inline code CLASS::to_block_code(
3939 // Transitional: Satisfies validation rules (prevouts unverified).
4040 case schema::block_state::valid:
4141 return error::block_valid;
42+
4243 // Final: Satisfies confirmation rules (prevouts confirmable).
4344 case schema::block_state::confirmable:
4445 return error::block_confirmable;
46+
4547 // Final: Does not satisfy either validation or confirmation rules.
4648 case schema::block_state::unconfirmable:
4749 return error::block_unconfirmable;
50+
4851 // Fault: Has no state, should not happen when read from store.
4952 // block_unknown also used to reset a state (debugging).
5053 case schema::block_state::block_unknown:
@@ -66,9 +69,11 @@ inline code CLASS::to_tx_code(
6669 // Final: Is valid (passed check, accept, and connect).
6770 case schema::tx_state::connected:
6871 return error::tx_connected;
72+
6973 // Final: Is not valid (failed check, accept, or connect).
7074 case schema::tx_state::disconnected:
7175 return error::tx_disconnected;
76+
7277 // Fault: Has no state, should not happen when read from store.
7378 // tx_unknown also used to reset a state (debugging).
7479 case schema::tx_state::tx_unknown:
0 commit comments