| 91 | } |
| 92 | |
| 93 | bool CKeyCombi::GetPubKey(CPubKey& mOutKey, bool IsMine) const { |
| 94 | if (IsMine) { |
| 95 | if (mMinerCkey.IsValid()) { |
| 96 | mOutKey = mMinerCkey.GetPubKey(); |
| 97 | return true; |
| 98 | } |
| 99 | return false; |
| 100 | } |
| 101 | mOutKey = mMainCkey.GetPubKey(); |
| 102 | return true; |
| 103 | } |
| 104 | |
| 105 | string CKeyCombi::ToString() const { |
| 106 | string str(""); |