From d521bdbcf6cc29ca8c42d62f5ccad65426c63325 Mon Sep 17 00:00:00 2001 From: Nithish Karthik Date: Fri, 12 Apr 2024 21:49:43 +0530 Subject: [PATCH] fix --- src/mining/mining.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mining/mining.go b/src/mining/mining.go index 0f1a5a9..43ea6e5 100644 --- a/src/mining/mining.go +++ b/src/mining/mining.go @@ -29,7 +29,7 @@ func findValidPrevBlockHash(nBits uint32) [32]byte { type Item txn.Transaction func (i Item) HigherPriorityThan(other priorityQueue.Interface) bool { - return i.Priority < other.(Item).Priority + return i.Priority > other.(Item).Priority } var MaxBlockWeight = 4000000 - 1000 // 100 is a buffer amount