@@ -82,7 +82,7 @@ pub enum Event {
8282 TransactionGenerated {
8383 id : TransactionId ,
8484 publisher : Node ,
85- bytes : u64 ,
85+ size_bytes : u64 ,
8686 } ,
8787 TransactionSent {
8888 id : TransactionId ,
@@ -106,6 +106,7 @@ pub enum Event {
106106 vrf : u64 ,
107107 parent : Option < BlockId < Node > > ,
108108 header_bytes : u64 ,
109+ size_bytes : u64 ,
109110 endorsement : Option < Endorsement < Node > > ,
110111 transactions : Vec < TransactionId > ,
111112 } ,
@@ -137,7 +138,7 @@ pub enum Event {
137138 producer : Node ,
138139 index : u64 ,
139140 header_bytes : u64 ,
140- total_bytes : u64 ,
141+ size_bytes : u64 ,
141142 transactions : Vec < TransactionId > ,
142143 } ,
143144 IBSent {
@@ -169,7 +170,7 @@ pub enum Event {
169170 slot : u64 ,
170171 pipeline : u64 ,
171172 producer : Node ,
172- bytes : u64 ,
173+ size_bytes : u64 ,
173174 input_blocks : Vec < InputBlockId < Node > > ,
174175 endorser_blocks : Vec < EndorserBlockId < Node > > ,
175176 } ,
@@ -200,7 +201,7 @@ pub enum Event {
200201 slot : u64 ,
201202 pipeline : u64 ,
202203 producer : Node ,
203- bytes : u64 ,
204+ size_bytes : u64 ,
204205 votes : Votes < Node > ,
205206 } ,
206207 VTBundleNotGenerated {
@@ -322,9 +323,10 @@ impl EventTracker {
322323 vrf : block. vrf ,
323324 parent : block. parent . map ( |id| self . to_block ( id) ) ,
324325 header_bytes : block. header_bytes ,
326+ size_bytes : block. bytes ( ) ,
325327 endorsement : block. endorsement . as_ref ( ) . map ( |e| Endorsement {
326328 eb : self . to_endorser_block ( e. eb ) ,
327- bytes : e. bytes ,
329+ size_bytes : e. size_bytes ,
328330 votes : e
329331 . votes
330332 . iter ( )
@@ -359,7 +361,7 @@ impl EventTracker {
359361 self . send ( Event :: TransactionGenerated {
360362 id : transaction. id ,
361363 publisher : self . to_node ( publisher) ,
362- bytes : transaction. bytes ,
364+ size_bytes : transaction. bytes ,
363365 } ) ;
364366 }
365367
@@ -397,7 +399,7 @@ impl EventTracker {
397399 producer : self . to_node ( block. header . id . producer ) ,
398400 index : block. header . id . index ,
399401 header_bytes : block. header . bytes ,
400- total_bytes : block. header . bytes
402+ size_bytes : block. header . bytes
401403 + block. transactions . iter ( ) . map ( |tx| tx. bytes ) . sum :: < u64 > ( ) ,
402404 transactions : block. transactions . iter ( ) . map ( |tx| tx. id ) . collect ( ) ,
403405 } ) ;
@@ -442,7 +444,7 @@ impl EventTracker {
442444 slot : block. slot ,
443445 pipeline : block. pipeline ,
444446 producer : self . to_node ( block. producer ) ,
445- bytes : block. bytes ,
447+ size_bytes : block. bytes ,
446448 input_blocks : block
447449 . ibs
448450 . iter ( )
@@ -493,7 +495,7 @@ impl EventTracker {
493495 slot : votes. id . slot ,
494496 pipeline : votes. id . pipeline ,
495497 producer : self . to_node ( votes. id . producer ) ,
496- bytes : votes. bytes ,
498+ size_bytes : votes. bytes ,
497499 votes : Votes (
498500 votes
499501 . ebs
0 commit comments