File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
stackslib/src/chainstate/nakamoto Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1992,6 +1992,15 @@ impl NakamotoChainState {
1992
1992
next_ready_block. header. consensus_hash
1993
1993
) ;
1994
1994
1995
+ // this will panic if the Clarity commit fails.
1996
+ clarity_commit. commit ( ) ;
1997
+ chainstate_tx. commit ( )
1998
+ . unwrap_or_else ( |e| {
1999
+ error ! ( "Failed to commit chainstate transaction after committing Clarity block. The chainstate database is now corrupted." ;
2000
+ "error" => ?e) ;
2001
+ panic ! ( )
2002
+ } ) ;
2003
+
1995
2004
// set stacks block accepted
1996
2005
let mut sort_tx = sort_db. tx_handle_begin ( canonical_sortition_tip) ?;
1997
2006
sort_tx. set_stacks_block_accepted (
@@ -2000,15 +2009,6 @@ impl NakamotoChainState {
2000
2009
next_ready_block. header . chain_length ,
2001
2010
) ?;
2002
2011
2003
- // this will panic if the Clarity commit fails.
2004
- clarity_commit. commit ( ) ;
2005
- chainstate_tx. commit ( )
2006
- . unwrap_or_else ( |e| {
2007
- error ! ( "Failed to commit chainstate transaction after committing Clarity block. The chainstate database is now corrupted." ;
2008
- "error" => ?e) ;
2009
- panic ! ( )
2010
- } ) ;
2011
-
2012
2012
// as a separate transaction, mark this block as processed.
2013
2013
// This is done separately so that the staging blocks DB, which receives writes
2014
2014
// from the network to store blocks, will be available for writes while a block is
You can’t perform that action at this time.
0 commit comments