Skip to content

Commit

Permalink
Fix NetMsgType::DSCOMPLETE usage
Browse files Browse the repository at this point in the history
Closes #731
  • Loading branch information
UdjinM6 authored and schinzelh committed Mar 14, 2016
1 parent 5d42a37 commit c872091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/darksend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void CDarksendPool::ProcessMessageDarksend(CNode* pfrom, std::string& strCommand
//check to see if input is spent already? (and probably not confirmed)
SignFinalTransaction(txNew, pfrom);

} else if (strCommand == NetMsgType::DSSTATUSUPDATE) { //Darksend Complete
} else if (strCommand == NetMsgType::DSCOMPLETE) { //Darksend Complete

if (pfrom->nVersion < MIN_POOL_PEER_PROTO_VERSION) {
return;
Expand Down Expand Up @@ -2198,7 +2198,7 @@ void CDarksendPool::RelayCompletedTransaction(const int sessionID, const bool er
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
pnode->PushMessage(NetMsgType::DSSTATUSUPDATE, sessionID, error, errorID);
pnode->PushMessage(NetMsgType::DSCOMPLETE, sessionID, error, errorID);
}

void CDarksendPool::UpdatedBlockTip(const CBlockIndex *pindex)
Expand Down
2 changes: 1 addition & 1 deletion src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ extern const char *DSACCEPT;
extern const char *DSVIN;
extern const char *DSFINALTX;
extern const char *DSSIGNFINALTX;
extern const char *DSDSCOMPLETE;
extern const char *DSCOMPLETE;
extern const char *DSSTATUSUPDATE;
extern const char *DSTX;
extern const char *DSQUEUE;
Expand Down

0 comments on commit c872091

Please sign in to comment.