Skip to content

Commit 0b7c20b

Browse files
committed
rename BlockState to be consistent with DB model
1 parent 879fd98 commit 0b7c20b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/Fluidex.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ contract FluidexDemo is Events, KeyedVerifier, ReentrancyGuard {
1818

1919
enum BlockState {
2020
Empty,
21-
Submitted,
21+
Committed,
2222
Verified
2323
}
2424

@@ -145,15 +145,15 @@ contract FluidexDemo is Events, KeyedVerifier, ReentrancyGuard {
145145
assert(block_states[_block_id] != BlockState.Verified);
146146
block_states[_block_id] = BlockState.Verified;
147147
} else {
148-
// mark a block as Submitted (Committed) directly, because we may
148+
// mark a block as Committed directly, because we may
149149
// temporarily run out of proving resource.
150150
// note: Committing a block without a rollback/revert mechanism should
151151
// only happen in demo version!
152152
if (_block_id > 0) {
153153
assert(block_states[_block_id-1] != BlockState.Empty);
154154
}
155155
assert(block_states[_block_id] == BlockState.Empty);
156-
block_states[_block_id] = BlockState.Submitted;
156+
block_states[_block_id] = BlockState.Committed;
157157
}
158158
state_roots[_block_id] = _public_inputs[1];
159159

0 commit comments

Comments
 (0)