@@ -44,7 +44,7 @@ namespace
4444 {
4545 storage::Totals allTotals (*walletDB);
4646 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 ) ;
4848 if (beamAmount + beamFee > available)
4949 {
5050 throw NotEnoughtBeams ();
@@ -914,10 +914,10 @@ namespace beam::wallet
914914 storage::Totals allTotals (*walletDB);
915915 const auto & totals = allTotals.GetBeamTotals ();
916916
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 );
921921
922922 if (data.withAssets )
923923 {
@@ -1031,10 +1031,6 @@ namespace beam::wallet
10311031 return data.count == 0 || counter < data.count ;
10321032 }, filter);
10331033 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- });
10381034 }
10391035
10401036 doResponse (id, res);
0 commit comments