File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -461,15 +461,21 @@ namespace beam
461461
462462 ret.emplace_back ();
463463 Burst& b = ret.back ();
464+ b.m_Aid = g.m_Aid ;
464465
465466 b.m_Value = AmountBig::get_Hi (g.m_Value ) ?
466467 Amount (-1 ) :
467468 AmountBig::get_Lo (g.m_Value );
468469
469- b.m_Height = MaxHeight;
470+ if (g.m_Data .m_vOutputs .empty ())
471+ b.m_Height = 0 ; // allocated for the contract
472+ else
473+ {
474+ b.m_Height = MaxHeight;
470475
471- for (size_t i = 0 ; i < g.m_Data .m_vOutputs .size (); i++)
472- std::setmin (b.m_Height , g.m_Data .m_vOutputs [i]->m_Incubation );
476+ for (size_t i = 0 ; i < g.m_Data .m_vOutputs .size (); i++)
477+ std::setmin (b.m_Height , g.m_Data .m_vOutputs [i]->m_Incubation );
478+ }
473479 }
474480
475481 return ret;
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ namespace beam
199199 {
200200 Height m_Height;
201201 Amount m_Value; // rounded to max value in case of overflow
202+ Asset::ID m_Aid;
202203 };
203204
204205 std::vector<Burst> get_Bursts () const ;
Original file line number Diff line number Diff line change @@ -2837,7 +2837,7 @@ bool NodeProcessor::HandleTreasury(const Blob& blob)
28372837 for (size_t i = 0 ; i < vBursts.size (); i++)
28382838 {
28392839 const Treasury::Data::Burst& b = vBursts[i];
2840- os << " \n\t " << " Height=" << b.m_Height << " , Value=" << AmountBig::Printable (b.m_Value );
2840+ os << " \n\t " << " Height=" << b.m_Height << " , Aid= " << b. m_Aid << " , Value=" << AmountBig::Printable (b.m_Value );
28412841 }
28422842
28432843 BEAM_LOG_INFO () << os.str ();
You can’t perform that action at this time.
0 commit comments