Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Apr 23, 2024
1 parent 51d00af commit 290514f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mine-your-first-block/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ fn main() {
let mut block_txs: Vec<TransactionForProcessing> = Vec::new();
let mut total_weight = 0u64;
//let max_block_weight = 1000000u64;
let max_block_weight = 300001u64;
let max_block_weight = 200000u64;
let mut total_fees = 0u64;

// Sort transactions by fee in descending order before processing
Expand Down Expand Up @@ -1365,9 +1365,6 @@ fn main() {
// Generate coinbase tx
let coinbase_tx = create_coinbase_tx(total_fees, wtx_ids_for_witness_root.clone());
let serialized_cb_tx = serialized_segwit_tx(&coinbase_tx);


//println!("{:#?}", coinbase_tx);
let cd_tx_bytes = hex::decode(serialized_cb_tx.clone()).unwrap();

// coinbase txid
Expand Down

0 comments on commit 290514f

Please sign in to comment.