mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
fixed local mn error
This commit is contained in:
parent
b770f344b6
commit
dfe76916dd
@ -2583,7 +2583,7 @@ static const int64 DARKSEND_FEE = 0.001*COIN;
|
||||
class CDarkSendPool
|
||||
{
|
||||
public:
|
||||
static const int MIN_PEER_PROTO_VERSION = 70025;
|
||||
static const int MIN_PEER_PROTO_VERSION = 70026;
|
||||
|
||||
std::vector<CDarkSendEntry> myEntries;
|
||||
std::vector<CDarkSendEntry> entries;
|
||||
|
@ -1924,9 +1924,13 @@ void RelayDarkSendFinalTransaction(const CTransaction& txNew)
|
||||
void RelayDarkSendIn(const std::vector<CTxIn>& in, const int64& nAmount, const CTransaction& txCollateral, const std::vector<CTxOut>& out)
|
||||
{
|
||||
LOCK(cs_vNodes);
|
||||
|
||||
int i = darkSendPool.GetCurrentMasterNode(1);
|
||||
if(i < 0) return;
|
||||
|
||||
BOOST_FOREACH(CNode* pnode, vNodes)
|
||||
{
|
||||
if(!pnode->fDarkSendMaster) continue;
|
||||
if(darkSendMasterNodes[i].addr != pnode->addr) continue;
|
||||
printf("RelayDarkSendIn - found master, relaying message - %s \n", pnode->addr.ToString().c_str());
|
||||
pnode->PushMessage("dsi", in, nAmount, txCollateral, out);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ extern const std::string CLIENT_DATE;
|
||||
// network protocol versioning
|
||||
//
|
||||
|
||||
static const int PROTOCOL_VERSION = 70025;
|
||||
static const int PROTOCOL_VERSION = 70026;
|
||||
|
||||
// intial proto version, to be increased after version/verack negotiation
|
||||
static const int INIT_PROTO_VERSION = 209;
|
||||
|
Loading…
Reference in New Issue
Block a user