@@ -44,7 +44,7 @@ namespace
44
44
{
45
45
storage::Totals allTotals (*walletDB);
46
46
const auto & totals = allTotals.GetBeamTotals ();
47
- const auto available = AmountBig::get_Lo (totals.Avail );
47
+ const auto available = AmountBig::get_Lo (totals.Avail ) + AmountBig::get_Lo (totals. AvailShielded ) ;
48
48
if (beamAmount + beamFee > available)
49
49
{
50
50
throw NotEnoughtBeams ();
@@ -914,10 +914,10 @@ namespace beam::wallet
914
914
storage::Totals allTotals (*walletDB);
915
915
const auto & totals = allTotals.GetBeamTotals ();
916
916
917
- response.available = AmountBig::get_Lo (totals.Avail );
918
- response.receiving = AmountBig::get_Lo (totals.Incoming );
919
- response.sending = AmountBig::get_Lo (totals.Outgoing );
920
- response.maturing = AmountBig::get_Lo (totals.Maturing );
917
+ response.available = AmountBig::get_Lo (totals.Avail ); response. available += AmountBig::get_Lo (totals. AvailShielded );
918
+ response.receiving = AmountBig::get_Lo (totals.Incoming ); response. receiving += AmountBig::get_Lo (totals. IncomingShielded );
919
+ response.sending = AmountBig::get_Lo (totals.Outgoing ); response. sending += AmountBig::get_Lo (totals. OutgoingShielded );
920
+ response.maturing = AmountBig::get_Lo (totals.Maturing ); response. maturing += AmountBig::get_Lo (totals. MaturingShielded );
921
921
922
922
if (data.withAssets )
923
923
{
@@ -1031,10 +1031,6 @@ namespace beam::wallet
1031
1031
return data.count == 0 || counter < data.count ;
1032
1032
}, filter);
1033
1033
assert (data.count == 0 || (int )res.resultList .size () <= data.count );
1034
- std::sort (res.resultList .begin (), res.resultList .end (), [](const auto & a, const auto & b)
1035
- {
1036
- return a.tx .m_minHeight > b.tx .m_minHeight ;
1037
- });
1038
1034
}
1039
1035
1040
1036
doResponse (id, res);
0 commit comments