bitcoin-unlimited: 1.0.3.0 -> 1.6.0.1
fixes openssl 1.1 compat
This commit is contained in:
parent
a75971078b
commit
b6998a786b
@ -1,38 +0,0 @@
|
|||||||
--- a/src/txmempool.h
|
|
||||||
+++ b/src/txmempool.h
|
|
||||||
@@ -204,7 +204,7 @@
|
|
||||||
class CompareTxMemPoolEntryByDescendantScore
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
|
||||||
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
|
||||||
{
|
|
||||||
bool fUseADescendants = UseDescendantScore(a);
|
|
||||||
bool fUseBDescendants = UseDescendantScore(b);
|
|
||||||
@@ -226,7 +226,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
// Calculate which score to use for an entry (avoiding division).
|
|
||||||
- bool UseDescendantScore(const CTxMemPoolEntry &a)
|
|
||||||
+ bool UseDescendantScore(const CTxMemPoolEntry &a) const
|
|
||||||
{
|
|
||||||
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
|
|
||||||
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
|
|
||||||
@@ -241,7 +241,7 @@
|
|
||||||
class CompareTxMemPoolEntryByScore
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
|
||||||
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
|
||||||
{
|
|
||||||
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
|
|
||||||
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
|
|
||||||
@@ -255,7 +255,7 @@
|
|
||||||
class CompareTxMemPoolEntryByEntryTime
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
|
||||||
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
|
||||||
{
|
|
||||||
return a.GetTime() < b.GetTime();
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
|
||||||
, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
|
, zlib, miniupnpc, utillinux, protobuf, qrencode, libevent, python3
|
||||||
, withGui
|
, withGui, wrapQtAppsHook, qtbase, qttools
|
||||||
, Foundation, ApplicationServices, AppKit }:
|
, Foundation, ApplicationServices, AppKit }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -8,27 +8,26 @@ with stdenv.lib;
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
|
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
|
||||||
version = "1.0.3.0";
|
version = "1.6.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bitcoinunlimited";
|
owner = "bitcoinunlimited";
|
||||||
repo = "bitcoinunlimited";
|
repo = "bitcoinunlimited";
|
||||||
rev = "v${version}";
|
rev = "bucash${version}";
|
||||||
sha256 = "0l02a7h502msrp4c02wgm7f3159ap8l61k4890vas99gq7ywxkcx";
|
sha256 = "0f0mnal4jf8xdj7w5m4rdlcqkrkbpxi88c006m5k45lmjmj141zr";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
nativeBuildInputs = [ pkgconfig autoreconfHook python3 ]
|
||||||
|
++ optionals withGui [ wrapQtAppsHook qttools ];
|
||||||
buildInputs = [ openssl db48 boost zlib
|
buildInputs = [ openssl db48 boost zlib
|
||||||
miniupnpc utillinux protobuf libevent ]
|
miniupnpc utillinux protobuf libevent ]
|
||||||
++ optionals withGui [ qt4 qrencode ]
|
++ optionals withGui [ qtbase qttools qrencode ]
|
||||||
++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
|
++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
|
||||||
|
|
||||||
patches = [
|
|
||||||
./bitcoin-unlimited-const-comparators.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
||||||
++ optionals withGui [ "--with-gui=qt4" ];
|
++ optionals withGui [ "--with-gui=qt5"
|
||||||
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||||||
|
];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -11,7 +11,7 @@ rec {
|
|||||||
bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { boost = boost165; withGui = true; };
|
bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { boost = boost165; withGui = true; };
|
||||||
bitcoind-abc = callPackage ./bitcoin-abc.nix { boost = boost165; withGui = false; };
|
bitcoind-abc = callPackage ./bitcoin-abc.nix { boost = boost165; withGui = false; };
|
||||||
|
|
||||||
bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix {
|
bitcoin-unlimited = libsForQt5.callPackage ./bitcoin-unlimited.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
|
inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
|
||||||
withGui = true;
|
withGui = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user