Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7bedd09

Browse filesBrowse files
committed
Upload block.js file
1 parent d2a38a5 commit 7bedd09
Copy full SHA for 7bedd09

File tree

2 files changed

+6
-2
lines changed
Filter options

2 files changed

+6
-2
lines changed

‎frontend/src/components/Block.js

Copy file name to clipboardExpand all lines: frontend/src/components/Block.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,18 @@ function ToggleTransactionDisplay({block}) {
5252

5353

5454
function Block({block}){
55-
const {hash, timestamp} = block;
55+
const {hash, timestamp, last_hash, nonce,} = block;
5656
const hashDisplay = `${hash.substring(0,15)}...`
5757
const timestampDisplay = new Date(timestamp / MILLISECONDS_PY).toLocaleString()
58+
const nonceDisplay = `${nonce}`
59+
const prevHashDisplay = `${last_hash.substring(0,15)}...`
5860

5961
return (
6062
<div className='Block'>
6163
<div>Hash : {hashDisplay}</div>
6264
<div>Timestamp : {timestampDisplay}</div>
65+
<div>Nonce : {nonceDisplay}</div>
66+
<div>Previous hash : {prevHashDisplay}</div>
6367
<ToggleTransactionDisplay block={block} />
6468
</div>
6569
)

‎frontend/src/index.css

Copy file name to clipboardExpand all lines: frontend/src/index.css
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
background-color: #86CF10 ;
2+
background-color: #000 ;
33
color: #fff;
44
text-align: center;
55
font-size: 18px;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.