@@ -366,15 +366,26 @@ QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const
366366
367367 switch (gentype)
368368 {
369- case MinedType::POS : return tr (" MINED - POS" );
370- case MinedType::POR : return tr (" MINED - POR" );
371- case MinedType::ORPHANED : return tr (" MINED - ORPHANED" );
372- case MinedType::POS_SIDE_STAKE : return tr (" POS SIDE STAKE" );
373- case MinedType::POR_SIDE_STAKE : return tr (" POR SIDE STAKE" );
374- default : return tr (" MINED - UNKNOWN" );
369+ case MinedType::POS:
370+ return tr (" MINED - POS" );
371+ case MinedType::POR:
372+ return tr (" MINED - POR" );
373+ case MinedType::ORPHANED:
374+ return tr (" MINED - ORPHANED" );
375+ case MinedType::POS_SIDE_STAKE:
376+ return tr (" POS SIDE STAKE" );
377+ case MinedType::POR_SIDE_STAKE:
378+ return tr (" POR SIDE STAKE" );
379+ case MinedType::SUPERBLOCK:
380+ return tr (" MINED - SUPERBLOCK" );
381+ default :
382+ return tr (" MINED - UNKNOWN" );
375383 }
376- }
377-
384+ }
385+ case TransactionRecord::BeaconAdvertisement:
386+ return tr (" Beacon Advertisement" );
387+ case TransactionRecord::Vote:
388+ return tr (" Vote" );
378389 default :
379390 return QString ();
380391 }
@@ -392,12 +403,20 @@ QVariant TransactionTableModel::txAddressDecoration(const TransactionRecord *wtx
392403
393404 switch (gentype)
394405 {
395- case MinedType::POS : return QIcon (" :/icons/tx_mined" );
396- case MinedType::POR : return QIcon (" :/icons/tx_cpumined" );
397- case MinedType::ORPHANED : return QIcon (" :/icons/transaction_conflicted" );
398- case MinedType::POS_SIDE_STAKE : return QIcon (" :/icons/tx_mined_ss" );
399- case MinedType::POR_SIDE_STAKE : return QIcon (" :/icons/tx_cpumined_ss" );
400- default : return QIcon (" :/icons/transaction_0" );
406+ case MinedType::POS:
407+ return QIcon (" :/icons/tx_mined" );
408+ case MinedType::POR:
409+ return QIcon (" :/icons/tx_cpumined" );
410+ case MinedType::ORPHANED:
411+ return QIcon (" :/icons/transaction_conflicted" );
412+ case MinedType::POS_SIDE_STAKE:
413+ return QIcon (" :/icons/tx_mined_ss" );
414+ case MinedType::POR_SIDE_STAKE:
415+ return QIcon (" :/icons/tx_cpumined_ss" );
416+ case MinedType::SUPERBLOCK:
417+ return QIcon (" :/icons/superblock" );
418+ default :
419+ return QIcon (" :/icons/transaction_0" );
401420 }
402421 }
403422 case TransactionRecord::RecvWithAddress:
@@ -406,6 +425,10 @@ QVariant TransactionTableModel::txAddressDecoration(const TransactionRecord *wtx
406425 case TransactionRecord::SendToAddress:
407426 case TransactionRecord::SendToOther:
408427 return QIcon (" :/icons/tx_output" );
428+ case TransactionRecord::BeaconAdvertisement:
429+ return QIcon (" :/icons/beacon_grey" );
430+ case TransactionRecord::Vote:
431+ return QIcon (" :/icons/voting_native" );
409432 default :
410433 return QIcon (" :/icons/tx_inout" );
411434 }
0 commit comments