From b4f562f553eae6241bcca5ea5257d765a2777f56 Mon Sep 17 00:00:00 2001 From: Nithish Karthik Date: Fri, 12 Apr 2024 01:11:46 +0530 Subject: [PATCH] 16 --- src/main.go | 2 +- src/mining/mining.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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)