Skip to content

Commit 6665c94

Browse files
authored
feat: add price to status (#648)
1 parent 62f5b4c commit 6665c94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/command/status.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ export class Status extends RootCommand implements LeafCommand {
3131
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
3232
this.console.all('')
3333
this.console.all(chalk.bold('Chainsync'))
34-
const { block, chainTip } = await this.bee.getChainState()
34+
const { block, chainTip, currentPrice } = await this.bee.getChainState()
3535
this.console.all(
3636
createKeyValue(
3737
'Block',
3838
`${block.toLocaleString()} / ${chainTip.toLocaleString()}${(chainTip - block).toLocaleString()})`,
3939
),
4040
)
41+
this.console.all(createKeyValue('Storage Price', currentPrice.toLocaleString() + ' PLUR / chunk / block'))
4142
}
4243

4344
if (nodeInfo.beeMode !== BeeModes.DEV) {

0 commit comments

Comments
 (0)