Skip to content

Commit

Permalink
Port superstake interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed Jun 28, 2024
1 parent 78ebf10 commit c23147c
Show file tree
Hide file tree
Showing 12 changed files with 675 additions and 52 deletions.
9 changes: 8 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ BITCOIN_CORE_H = \
util/types.h \
util/ui_change_type.h \
util/vector.h \
util/convert.h \
util/signstr.h \
validation.h \
validationinterface.h \
versionbits.h \
Expand Down Expand Up @@ -377,7 +379,10 @@ BITCOIN_CORE_H = \
zmq/zmqnotificationinterface.h \
zmq/zmqpublishnotifier.h \
zmq/zmqrpc.h \
zmq/zmqutil.h
zmq/zmqutil.h \
qtum/posutils.h \
qtum/qtumutils.h \
qtum/delegationutils.h


obj/build.h: FORCE
Expand Down Expand Up @@ -723,6 +728,8 @@ libbitcoin_common_a_SOURCES = \
script/signingprovider.cpp \
script/solver.cpp \
warnings.cpp \
qtum/qtumutils.cpp \
qtum/delegationutils.cpp \
libff/libff/algebra/curves/public_params.hpp \
libff/libff/algebra/curves/curve_utils.hpp \
evmone/include/evmone/evmone.h \
Expand Down
5 changes: 5 additions & 0 deletions src/netbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@ bool ConnectSocketDirectly(const CService &addrConnect, const Sock& sock, int nT

// Connect to the addrConnect service on the hSocket socket.
if (sock.Connect(reinterpret_cast<struct sockaddr*>(&sockaddr), len) == SOCKET_ERROR) {
if (!sock.IsSelectable()) {
LogPrintf("Cannot create connection: non-selectable socket created (fd >= FD_SETSIZE ?)\n");
return false;
}

int nErr = WSAGetLastError();
// WSAEINVAL is here because some legacy version of winsock uses it
if (nErr == WSAEINPROGRESS || nErr == WSAEWOULDBLOCK || nErr == WSAEINVAL)
Expand Down
Loading

0 comments on commit c23147c

Please sign in to comment.