aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-08 22:06:07 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-08 22:06:07 +0000
commit461764cbbea5965ebbd248f221876743d7a9ccd4 (patch)
treee188896a34a17405f88a3968aa94d3aaf7046585 /main.h
parent3b8848fa4e9b2cd8187cf90a7cbeabd662490c2b (diff)
-paytxfee is now per KB,
BitcoinMiner prioritise transactions by how old their dependencies are git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@176 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'main.h')
-rw-r--r--main.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.h b/main.h
index af552a5bac..5176d90cea 100644
--- a/main.h
+++ b/main.h
@@ -76,7 +76,7 @@ bool ProcessMessages(CNode* pfrom);
bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv);
bool SendMessages(CNode* pto, bool fSendTrickle);
int64 GetBalance();
-bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRequiredRet);
+bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet);
bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey);
bool BroadcastTransaction(CWalletTx& wtxNew);
string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);
@@ -580,7 +580,6 @@ public:
return true;
}
-
friend bool operator==(const CTransaction& a, const CTransaction& b)
{
return (a.nVersion == b.nVersion &&
@@ -617,6 +616,9 @@ public:
}
+ bool ReadFromDisk(CTxDB& txdb, COutPoint prevout, CTxIndex& txindexRet);
+ bool ReadFromDisk(CTxDB& txdb, COutPoint prevout);
+ bool ReadFromDisk(COutPoint prevout);
bool DisconnectInputs(CTxDB& txdb);
bool ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPool, CDiskTxPos posThisTx,
CBlockIndex* pindexBlock, int64& nFees, bool fBlock, bool fMiner, int64 nMinFee=0);
@@ -1654,7 +1656,7 @@ public:
bool Cancels(const CAlert& alert) const
{
if (!IsInEffect())
- false;
+ return false; // this was a no-op before 31403
return (alert.nID <= nCancel || setCancel.count(alert.nID));
}