| 361 | } |
| 362 | |
| 363 | string CCDPStakeTx::ToString(CAccountDBCache &accountCache) { |
| 364 | CKeyID keyId; |
| 365 | accountCache.GetKeyId(txUid, keyId); |
| 366 | |
| 367 | return strprintf( |
| 368 | "txType=%s, hash=%s, ver=%d, txUid=%s, addr=%s, valid_height=%llu, cdp_txid=%s, assets_to_stake=%s, " |
| 369 | "scoin_symbol=%s, scoins_to_mint=%d", |
| 370 | GetTxType(nTxType), GetHash().ToString(), nVersion, txUid.ToString(), keyId.ToAddress(), valid_height, |
| 371 | cdp_txid.ToString(), cdp_util::ToString(assets_to_stake), scoin_symbol, scoins_to_mint); |
| 372 | } |
| 373 | |
| 374 | Object CCDPStakeTx::ToJson(CCacheWrapper &cw) const { |
| 375 | Object result = CBaseTx::ToJson(cw); |
no test coverage detected