mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-15 01:20:24 +00:00
WIP: fixed compilation errors.
This commit is contained in:
parent
ec2f335382
commit
b112e0c795
@ -176,6 +176,9 @@ BITCOIN_CORE_H = \
|
|||||||
zmq/zmqnotificationinterface.h \
|
zmq/zmqnotificationinterface.h \
|
||||||
zmq/zmqpublishnotifier.h
|
zmq/zmqpublishnotifier.h
|
||||||
|
|
||||||
|
BITCOIN_CORE_H += \
|
||||||
|
keva/main.h \
|
||||||
|
keva/common.h
|
||||||
|
|
||||||
obj/build.h: FORCE
|
obj/build.h: FORCE
|
||||||
@$(MKDIR_P) $(builddir)/obj
|
@$(MKDIR_P) $(builddir)/obj
|
||||||
@ -225,6 +228,7 @@ libbitcoin_server_a_SOURCES = \
|
|||||||
validation.cpp \
|
validation.cpp \
|
||||||
validationinterface.cpp \
|
validationinterface.cpp \
|
||||||
versionbits.cpp \
|
versionbits.cpp \
|
||||||
|
keva/main.cpp \
|
||||||
$(BITCOIN_CORE_H)
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
if ENABLE_ZMQ
|
if ENABLE_ZMQ
|
||||||
@ -254,6 +258,9 @@ libbitcoin_wallet_a_SOURCES = \
|
|||||||
wallet/walletutil.cpp \
|
wallet/walletutil.cpp \
|
||||||
$(BITCOIN_CORE_H)
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
|
libbitcoin_wallet_a_SOURCES += \
|
||||||
|
wallet/rpckeva.cpp
|
||||||
|
|
||||||
# crypto primitives library
|
# crypto primitives library
|
||||||
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(SSL_CFLAGS)
|
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(SSL_CFLAGS)
|
||||||
crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
@ -331,7 +338,9 @@ libbitcoin_consensus_a_SOURCES = \
|
|||||||
uint256.h \
|
uint256.h \
|
||||||
utilstrencodings.cpp \
|
utilstrencodings.cpp \
|
||||||
utilstrencodings.h \
|
utilstrencodings.h \
|
||||||
version.h
|
version.h \
|
||||||
|
script/keva.h \
|
||||||
|
script/keva.cpp
|
||||||
|
|
||||||
# common: shared between bitcoind, and bitcoin-qt and non-server tools
|
# common: shared between bitcoind, and bitcoin-qt and non-server tools
|
||||||
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
||||||
@ -354,6 +363,7 @@ libbitcoin_common_a_SOURCES = \
|
|||||||
script/sign.cpp \
|
script/sign.cpp \
|
||||||
script/standard.cpp \
|
script/standard.cpp \
|
||||||
warnings.cpp \
|
warnings.cpp \
|
||||||
|
keva/common.cpp \
|
||||||
$(BITCOIN_CORE_H)
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
# util: shared between all executables.
|
# util: shared between all executables.
|
||||||
|
@ -58,7 +58,7 @@ private:
|
|||||||
bool isNew;
|
bool isNew;
|
||||||
|
|
||||||
/** The old name value that was overwritten by the operation. */
|
/** The old name value that was overwritten by the operation. */
|
||||||
CNameData oldData;
|
CKevaData oldData;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -137,8 +137,8 @@ public:
|
|||||||
* Construct with reference to parent mempool.
|
* Construct with reference to parent mempool.
|
||||||
* @param p The parent pool.
|
* @param p The parent pool.
|
||||||
*/
|
*/
|
||||||
explicit inline CNameMemPool (CTxMemPool& p)
|
explicit inline CKevaMemPool (CTxMemPool& p)
|
||||||
: pool(p), mapNamespaceRegs(), mapKeyRegs(), mapNameUpdates()
|
: pool(p), mapNamespaceRegs()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -149,9 +149,9 @@ public:
|
|||||||
* @return True iff there's a matching namespace registration in the pool.
|
* @return True iff there's a matching namespace registration in the pool.
|
||||||
*/
|
*/
|
||||||
inline bool
|
inline bool
|
||||||
registersNamespace (const valtype& namespace) const
|
registersNamespace (const valtype& nameSpace) const
|
||||||
{
|
{
|
||||||
return mapNamespaceRegs.count (name) > 0;
|
return mapNamespaceRegs.count(nameSpace) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -162,7 +162,8 @@ public:
|
|||||||
inline bool
|
inline bool
|
||||||
updatesName (const valtype& name) const
|
updatesName (const valtype& name) const
|
||||||
{
|
{
|
||||||
return mapNameUpdates.count (name) > 0;
|
//return mapNameUpdates.count (name) > 0;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -179,9 +180,11 @@ public:
|
|||||||
inline void
|
inline void
|
||||||
clear ()
|
clear ()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
mapNameRegs.clear ();
|
mapNameRegs.clear ();
|
||||||
mapNameUpdates.clear ();
|
mapNameUpdates.clear ();
|
||||||
mapNameNews.clear ();
|
mapNameNews.clear ();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -152,29 +152,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the name operation's rand value. This is only valid
|
|
||||||
* for OP_NAME_FIRSTUPDATE.
|
|
||||||
* @return The name operation's rand.
|
|
||||||
*/
|
|
||||||
inline const valtype& getOpRand() const
|
|
||||||
{
|
|
||||||
assert (op == OP_NAME_FIRSTUPDATE);
|
|
||||||
return args[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the name operation's hash value. This is only valid
|
|
||||||
* for OP_NAME_NEW.
|
|
||||||
* @return The name operation's hash.
|
|
||||||
*/
|
|
||||||
inline const valtype&
|
|
||||||
getOpHash () const
|
|
||||||
{
|
|
||||||
assert (op == OP_NAME_NEW);
|
|
||||||
return args[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the given script is a name script. This is a utility method.
|
* Check if the given script is a name script. This is a utility method.
|
||||||
* @param script The script to parse.
|
* @param script The script to parse.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user