First version of mempool request

This commit is contained in:
jl777
2019-07-15 02:04:19 -11:00
parent abcc70d9fe
commit 28e10d71bf
7 changed files with 236 additions and 29 deletions

View File

@@ -43,6 +43,10 @@
#define NSPV_TXIDSRESP 0x0f
#define NSPV_MEMPOOL 0x10
#define NSPV_MEMPOOLRESP 0x11
#define NSPV_MEMPOOL_ALL 0
#define NSPV_MEMPOOL_ADDRESS 1
#define NSPV_MEMPOOL_ISSPENT 2
#define NSPV_MEMPOOL_INMEMPOOL 3
int32_t NSPV_gettransaction(int32_t skipvalidation,int32_t vout,uint256 txid,int32_t height,CTransaction &tx,int64_t extradata,uint32_t tiptime,int64_t &rewardsum);
UniValue NSPV_spend(char *srcaddr,char *destaddr,int64_t satoshis);
@@ -92,6 +96,14 @@ struct NSPV_txidsresp
uint16_t numtxids,CCflag;
};
struct NSPV_mempoolresp
{
uint256 *txids;
char coinaddr[64];
int32_t nodeheight,vout,pad32;
uint16_t numtxids; uint8_t CCflag,funcid;
};
struct NSPV_ntz
{
uint256 blockhash,txid,othertxid;