From 48ad1660e88208ec6f3aeaf71c4b7dd438c74732 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Fri, 25 Mar 2022 11:46:58 -0600 Subject: [PATCH] fix remoun comment (use constant at top of file) --- ledger/db/src/lib.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ledger/db/src/lib.rs b/ledger/db/src/lib.rs index 4bd24062f5..c235a666db 100644 --- a/ledger/db/src/lib.rs +++ b/ledger/db/src/lib.rs @@ -2528,7 +2528,7 @@ mod ledger_db_test { ..Default::default() }; let block = Block::new_with_parent( - BlockVersion::ZERO, + BLOCK_VERSION, &origin_block, &Default::default(), &block_contents, @@ -2570,12 +2570,8 @@ mod ledger_db_test { ..Default::default() }; let parent = ledger_db.get_block(n_blocks - 1).unwrap(); - let block = Block::new_with_parent( - BlockVersion::ZERO, - &parent, - &Default::default(), - &block_contents, - ); + let block = + Block::new_with_parent(BLOCK_VERSION, &parent, &Default::default(), &block_contents); ledger_db .append_block(&block, &block_contents, None) @@ -2610,7 +2606,7 @@ mod ledger_db_test { ..Default::default() }; let block = Block::new_with_parent( - BlockVersion::ZERO, + BLOCK_VERSION, &origin_block, &Default::default(), &block_contents,