51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
|
|
||
|
// Copyright (c) 2014-2015 The Darkcoin developers
|
||
|
// Distributed under the MIT/X11 software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#ifndef DARKSEND_RELAY_H
|
||
|
#define DARKSEND_RELAY_H
|
||
|
|
||
|
#include "core.h"
|
||
|
#include "main.h"
|
||
|
#include "activemasternode.h"
|
||
|
#include "masternodeman.h"
|
||
|
|
||
|
|
||
|
class CDarkSendRelay
|
||
|
{
|
||
|
public:
|
||
|
CTxIn vinMasternode;
|
||
|
vector<unsigned char> vchSig;
|
||
|
vector<unsigned char> vchSig2;
|
||
|
int nBlockHeight;
|
||
|
int nRelayType;
|
||
|
CTxIn in;
|
||
|
CTxOut out;
|
||
|
std::string strSharedKey;
|
||
|
|
||
|
CDarkSendRelay();
|
||
|
CDarkSendRelay(CTxIn& vinMasternodeIn, vector<unsigned char>& vchSigIn, int nBlockHeightIn, int nRelayTypeIn, CTxIn& in2, CTxOut& out2, std::string strSharedKeyIn);
|
||
|
|
||
|
IMPLEMENT_SERIALIZE
|
||
|
(
|
||
|
READWRITE(vinMasternode);
|
||
|
READWRITE(vchSig);
|
||
|
READWRITE(vchSig2);
|
||
|
READWRITE(nBlockHeight);
|
||
|
READWRITE(nRelayType);
|
||
|
READWRITE(in);
|
||
|
READWRITE(out);
|
||
|
)
|
||
|
|
||
|
std::string ToString();
|
||
|
|
||
|
bool Sign();
|
||
|
bool VerifyMessage(std::string strSharedKey);
|
||
|
void Relay();
|
||
|
void RelayThroughNode(int nRank);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|