shadowproject / shadow

ShadowCore integration/staging tree
MIT License
96 stars 60 forks source link

CWallet: EstimateAnonFeeIncluded (WIP) #72

Open kewde opened 8 years ago

kewde commented 8 years ago

This is fix for #66. Work in progress, needs testing.

kewde commented 8 years ago

still need to include:

left_overs = GetShadowBalance() - nValue - nFees
if(left_overs < nTransActionFee){
    //spend dust as fee to stakers
}

where nValue is the actual value to be transferred.

kewde commented 8 years ago

Removed the PRId64 which caused failure on windows builds. Casting int64_t to int when LogPrintF().