Skip to content

Commit

Permalink
16
Browse files Browse the repository at this point in the history
  • Loading branch information
humblenginr committed Apr 11, 2024
1 parent 9d3a6a2 commit b4f562f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func UpdateValidTxns() {
os.WriteFile(fileName, byteResult, fs.FileMode(ValidTxnsDirPerm))
validTxnsCount += 1
}
if(validTxnsCount > 20){
if(validTxnsCount > 16){
break
}
}
Expand Down
1 change: 0 additions & 1 deletion src/mining/mining.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func calculateFees(txns []*txn.Transaction) int {
}

func SelectTransactionsFromFolder(validTxnsFolderPath string) []*txn.Transaction {
// for now we will just select first 15 transactions
files, err := os.ReadDir(validTxnsFolderPath)
if err != nil {
panic(err)
Expand Down

0 comments on commit b4f562f

Please sign in to comment.