| 42 | } |
| 43 | |
| 44 | string CUnsignedAlert::ToString() const { |
| 45 | string strSetCancel; |
| 46 | for(auto n:setCancel) |
| 47 | strSetCancel += strprintf("%d ", n); |
| 48 | |
| 49 | string strSetSubVer; |
| 50 | for(auto str:setSubVer) |
| 51 | strSetSubVer += "\"" + str + "\" "; |
| 52 | |
| 53 | return strprintf( |
| 54 | "CAlert(\n" |
| 55 | " nVersion = %d\n" |
| 56 | " nRelayUntil = %d\n" |
| 57 | " nExpiration = %d\n" |
| 58 | " nID = %d\n" |
| 59 | " nCancel = %d\n" |
| 60 | " setCancel = %s\n" |
| 61 | " nMinVer = %d\n" |
| 62 | " nMaxVer = %d\n" |
| 63 | " setSubVer = %s\n" |
| 64 | " nPriority = %d\n" |
| 65 | " strComment = \"%s\"\n" |
| 66 | " strStatusBar = \"%s\"\n" |
| 67 | ")\n", |
| 68 | nVersion, |
| 69 | nRelayUntil, |
| 70 | nExpiration, |
| 71 | nID, |
| 72 | nCancel, |
| 73 | strSetCancel, |
| 74 | nMinVer, |
| 75 | nMaxVer, |
| 76 | strSetSubVer, |
| 77 | nPriority, |
| 78 | strComment, |
| 79 | strStatusBar); |
| 80 | } |
| 81 | |
| 82 | void CUnsignedAlert::Print() const { LogPrint(BCLog::INFO, "%s", ToString()); } |
| 83 |
no outgoing calls
no test coverage detected