Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
0ec2e100
Commit
0ec2e100
authored
Aug 24, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide nonce field in the block views
parent
2df78df4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
block.ts
configs/app/ui/views/block.ts
+1
-0
ENVS.md
docs/ENVS.md
+1
-0
configs.ts
playwright/utils/configs.ts
+1
-1
BlockDetails.tsx
ui/block/BlockDetails.tsx
+1
-1
No files found.
configs/app/ui/views/block.ts
View file @
0ec2e100
...
...
@@ -5,6 +5,7 @@ import { getEnvValue, parseEnvJson } from 'configs/app/utils';
export
const
BLOCK_FIELDS_IDS
=
[
'
burnt_fees
'
,
'
total_reward
'
,
'
nonce
'
,
]
as
const
;
export
type
BlockFieldId
=
ArrayElement
<
typeof
BLOCK_FIELDS_IDS
>
;
...
...
docs/ENVS.md
View file @
0ec2e100
...
...
@@ -146,6 +146,7 @@ The app version shown in the footer is derived from build-time ENV variables `NE
| --- | --- |
|
`burnt_fees`
| Burnt fees |
|
`total_reward`
| Total block reward |
|
`nonce`
| Block nonce |
...
...
playwright/utils/configs.ts
View file @
0ec2e100
...
...
@@ -23,7 +23,7 @@ export const featureEnvs = {
export
const
viewsEnvs
=
{
block
:
{
hiddenFields
:
[
{
name
:
'
NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS
'
,
value
:
'
["burnt_fees", "total_reward"]
'
},
{
name
:
'
NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS
'
,
value
:
'
["burnt_fees", "total_reward"
, "nonce"
]
'
},
],
},
};
ui/block/BlockDetails.tsx
View file @
0ec2e100
...
...
@@ -469,7 +469,7 @@ const BlockDetails = ({ query }: Props) => {
>
<Text wordBreak="break-all" whiteSpace="break-spaces">{ data.state_root }</Text>
</DetailsInfoItem> */
}
{
config
.
chain
.
verificationType
!==
'
validation
'
&&
(
{
config
.
chain
.
verificationType
!==
'
validation
'
&&
!
config
.
UI
.
views
.
block
.
hiddenFields
?.
nonce
&&
(
<
DetailsInfoItem
title=
"Nonce"
hint=
"Block nonce is a value used during mining to demonstrate proof of work for a block"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment