Skip to content

Commit 02bec4b

Browse files
author
Drak
committed
Fix compiler warnings
Fixes the following compiler warning ``` miner.cpp: In constructor ‘COrphan::COrphan(const CTransaction*)’: miner.cpp:69:14: warning: ‘COrphan::feeRate’ will be initialized after [-Wreorder] CFeeRate feeRate; ^ miner.cpp:68:12: warning: ‘double COrphan::dPriority’ [-Wreorder] double dPriority; ^ miner.cpp:71:5: warning: when initialized here [-Wreorder] COrphan(const CTransaction* ptxIn) : ptx(ptxIn), feeRate(0), dPriority(0) ```
1 parent db41541 commit 02bec4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class COrphan
6565
public:
6666
const CTransaction* ptx;
6767
set<uint256> setDependsOn;
68-
double dPriority;
6968
CFeeRate feeRate;
69+
double dPriority;
7070

7171
COrphan(const CTransaction* ptxIn) : ptx(ptxIn), feeRate(0), dPriority(0)
7272
{

0 commit comments

Comments
 (0)