src/interfaces/wallet.cpp
//! Construct wallet super staker info.
Construct wallet super staker info.
Construct wallet super staker info .
SuperStakerInfo MakeWalletSuperStakerInfo(const CSuperStakerInfo& superStaker)
{
    SuperStakerInfo result;
    result.staker_address = KeyIdToString(superStaker.stakerAddress);
    result.staker_name = superStaker.strStakerName;
    result.min_fee = superStaker.nMinFee;
    result.time = superStaker.nCreateTime;
    result.custom_config = superStaker.fCustomConfig;
    result.min_delegate_utxo = superStaker.nMinDelegateUtxo;
    result.delegate_address_list = KeyIdToStringList(superStaker.delegateAddressList);
    result.delegate_address_type = superStaker.nDelegateAddressType;
    result.hash = superStaker.GetHash();
    return result;
}
SuperStakerInfo MakeWalletSuperStakerInfo ( const CSuperStakerInfo & superStaker ) { SuperStakerInfo result ; result . staker_address = KeyIdToString ( superStaker . stakerAddress ) ; result . staker_name = superStaker . strStakerName ; result . min_fee = superStaker . nMinFee ; result . time = superStaker . nCreateTime ; result . custom_config = superStaker . fCustomConfig ; result . min_delegate_utxo = superStaker . nMinDelegateUtxo ; result . delegate_address_list = KeyIdToStringList ( superStaker . delegateAddressList ) ; result . delegate_address_type = superStaker . nDelegateAddressType ; result . hash = superStaker . GetHash ( ) ; return result ; }
Construct wallet super staker info.
Construct wallet super staker info .