Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying out ToJson() on objects
  • Loading branch information
jhodges10 committed Jul 4, 2018
commit 774f2078a61d2906dd9b27bd8027a619a8d0fca6
4 changes: 2 additions & 2 deletions src/governance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void CGovernanceManager::ProcessMessage(CNode* pfrom, const std::string& strComm
vote.Relay(connman);

// SEND NOTIFICATION TO ZMQ
GetMainSignals().NotifyGovernanceVote(vote);
GetMainSignals().NotifyGovernanceVote(vote.ToJson());
}
else {
LogPrint("gobject", "MNGOVERNANCEOBJECTVOTE -- Rejected vote, error = %s\n", exception.what());
Expand Down Expand Up @@ -366,7 +366,7 @@ void CGovernanceManager::AddGovernanceObject(CGovernanceObject& govobj, CConnman
CheckOrphanVotes(govobj, exception, connman);

// SEND NOTIFICATION TO ZMQ
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tobe reverted in cleanup PR

GetMainSignals().NotifyGovernanceObject(govobj);
GetMainSignals().NotifyGovernanceObject(govobj.ToJson());


DBG( std::cout << "CGovernanceManager::AddGovernanceObject END" << std::endl; );
Expand Down
2 changes: 1 addition & 1 deletion src/zmq/zmqnotificationinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CZMQNotificationInterface : public CValidationInterface
// CValidationInterface
void SyncTransaction(const CTransaction& tx, const CBlockIndex *pindex, int posInBlock) override;
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
void NotifyTransactionLock(const CTransaction &tx) override;
void NotifyTransactionLock(const CTransaction& tx) override;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo in formatting pr

void NotifyGovernanceVote(const CGovernanceVote& vote) override;
void NotifyGovernanceObject(const CGovernanceObject& object) override;

Expand Down