diff --git a/src/main.go b/src/main.go index 5b9859d..827811f 100644 --- a/src/main.go +++ b/src/main.go @@ -61,7 +61,7 @@ func UpdateValidTxns() { os.WriteFile(fileName, byteResult, fs.FileMode(ValidTxnsDirPerm)) validTxnsCount += 1 } - if(validTxnsCount > 20){ + if(validTxnsCount > 16){ break } } diff --git a/src/mining/mining.go b/src/mining/mining.go index ebd83b8..19926f6 100644 --- a/src/mining/mining.go +++ b/src/mining/mining.go @@ -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)