build: fix darwin build
This commit is contained in:
parent
ca0ee59d6e
commit
9994a074e5
|
@ -57,7 +57,7 @@ struct CMempoolAddressDeltaKey
|
||||||
|
|
||||||
struct CMempoolAddressDeltaKeyCompare
|
struct CMempoolAddressDeltaKeyCompare
|
||||||
{
|
{
|
||||||
bool operator()(const CMempoolAddressDeltaKey& a, const CMempoolAddressDeltaKey& b) {
|
bool operator()(const CMempoolAddressDeltaKey& a, const CMempoolAddressDeltaKey& b) const {
|
||||||
if (a.type == b.type) {
|
if (a.type == b.type) {
|
||||||
if (a.addressBytes == b.addressBytes) {
|
if (a.addressBytes == b.addressBytes) {
|
||||||
if (a.txhash == b.txhash) {
|
if (a.txhash == b.txhash) {
|
||||||
|
|
|
@ -401,7 +401,7 @@ bool CBlockTreeDB::ReadAddressIndex(uint160 addressHash, int type,
|
||||||
|
|
||||||
bool CBlockTreeDB::WriteTimestampIndex(const CTimestampIndexKey ×tampIndex) {
|
bool CBlockTreeDB::WriteTimestampIndex(const CTimestampIndexKey ×tampIndex) {
|
||||||
CDBBatch batch(*this);
|
CDBBatch batch(*this);
|
||||||
batch.Write(make_pair(DB_TIMESTAMPINDEX, timestampIndex), NULL);
|
batch.Write(make_pair(DB_TIMESTAMPINDEX, timestampIndex), 0);
|
||||||
return WriteBatch(batch);
|
return WriteBatch(batch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue