Add ownerAddr and votingAddr to CDeterministicMNState::ToJson (#2571)

This commit is contained in:
Alexander Block 2018-12-20 14:28:03 +01:00 committed by GitHub
parent 222e5b4f7f
commit e71ea29e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,8 @@ void CDeterministicMNState::ToJson(UniValue& obj) const
obj.push_back(Pair("keyIDOwner", keyIDOwner.ToString()));
obj.push_back(Pair("pubKeyOperator", pubKeyOperator.ToString()));
obj.push_back(Pair("keyIDVoting", keyIDVoting.ToString()));
obj.push_back(Pair("ownerKeyAddr", CBitcoinAddress(keyIDOwner).ToString()));
obj.push_back(Pair("votingKeyAddr", CBitcoinAddress(keyIDVoting).ToString()));
obj.push_back(Pair("addr", addr.ToStringIPPort(false)));
CTxDestination dest;