@@ -73,17 +73,70 @@ export class Status extends RootCommand implements LeafCommand {
7373 }
7474
7575 if ( nodeInfo . beeMode === BeeModes . FULL ) {
76+ const reserveStatus = await this . bee . getStatus ( )
77+ this . console . all ( '' )
78+ this . console . all ( chalk . bold ( 'Reserve' ) )
79+ this . console . all (
80+ createKeyValue (
81+ 'Pullsync rate' ,
82+ reserveStatus . pullsyncRate . toFixed ( 2 ) +
83+ ' chunks/s (' +
84+ ( ( reserveStatus . pullsyncRate * 4096 ) / 1024 / 1024 ) . toFixed ( 2 ) +
85+ ' MB/s)' ,
86+ ) ,
87+ )
88+ this . console . all (
89+ createKeyValue (
90+ 'Reserve size' ,
91+ reserveStatus . reserveSize . toLocaleString ( ) +
92+ ' chunks (' +
93+ ( ( reserveStatus . reserveSize * 4096 ) / 1024 / 1024 / 1024 ) . toFixed ( 2 ) +
94+ ' GB)' ,
95+ ) ,
96+ )
97+
98+ this . console . all (
99+ createKeyValue (
100+ 'Reserve size within radius' ,
101+ reserveStatus . reserveSizeWithinRadius . toLocaleString ( ) +
102+ ' chunks (' +
103+ ( ( reserveStatus . reserveSizeWithinRadius * 4096 ) / 1024 / 1024 / 1024 ) . toFixed ( 2 ) +
104+ ' GB)' ,
105+ ) ,
106+ )
76107 this . console . all ( '' )
77108 this . console . all ( chalk . bold ( 'Redistribution' ) )
78109 const redistributionState = await this . bee . getRedistributionState ( )
79- this . console . all ( createKeyValue ( 'Reward' , redistributionState . reward . toDecimalString ( ) ) )
110+ const currentRound = redistributionState . round
111+ this . console . all ( createKeyValue ( 'Reward' , redistributionState . reward . toDecimalString ( ) + ' xBZZ' ) )
80112 this . console . all ( createKeyValue ( 'Has sufficient funds' , redistributionState . hasSufficientFunds ) )
81113 this . console . all ( createKeyValue ( 'Fully synced' , redistributionState . isFullySynced ) )
82114 this . console . all ( createKeyValue ( 'Frozen' , redistributionState . isFrozen ) )
83- this . console . all ( createKeyValue ( 'Last selected round' , redistributionState . lastSelectedRound ) )
84- this . console . all ( createKeyValue ( 'Last played round' , redistributionState . lastPlayedRound ) )
85- this . console . all ( createKeyValue ( 'Last won round' , redistributionState . lastWonRound ) )
86- this . console . all ( createKeyValue ( 'Minimum gas funds' , redistributionState . minimumGasFunds . toDecimalString ( ) ) )
115+ this . console . all ( createKeyValue ( 'Current round' , redistributionState . round ) )
116+ this . console . all (
117+ createKeyValue (
118+ 'Last selected round' ,
119+ redistributionState . lastSelectedRound + ' (Δ ' + ( currentRound - redistributionState . lastSelectedRound ) + ')' ,
120+ ) ,
121+ )
122+ this . console . all (
123+ createKeyValue (
124+ 'Last played round' ,
125+ redistributionState . lastPlayedRound + ' (Δ ' + ( currentRound - redistributionState . lastPlayedRound ) + ')' ,
126+ ) ,
127+ )
128+ this . console . all (
129+ createKeyValue (
130+ 'Last won round' ,
131+ redistributionState . lastWonRound + ' (Δ ' + ( currentRound - redistributionState . lastWonRound ) + ')' ,
132+ ) ,
133+ )
134+ this . console . all (
135+ createKeyValue ( 'Last sampling duration' , redistributionState . lastSampleDurationSeconds + ' seconds' ) ,
136+ )
137+ this . console . all (
138+ createKeyValue ( 'Minimum gas funds' , redistributionState . minimumGasFunds . toDecimalString ( ) + ' xDAI' ) ,
139+ )
87140 }
88141 }
89142}
0 commit comments