Merge pull request #350 from filecoin-project/feat/th-ts-prop
townhall: show tipset propagation
This commit is contained in:
commit
b563c71f55
@ -25,7 +25,9 @@ class App extends React.Component {
|
|||||||
console.log(best)
|
console.log(best)
|
||||||
|
|
||||||
return <table>{Object.keys(this.state).map(k => [k, this.state[k]]).map(([k, v]) => {
|
return <table>{Object.keys(this.state).map(k => [k, this.state[k]]).map(([k, v]) => {
|
||||||
let l = [<td>{k}</td>, <td>{v.NodeName}</td>, <td>{v.Height}</td>]
|
|
||||||
|
let mnrs = v.Blocks.map(b => <span> m:{b.Miner}</span>)
|
||||||
|
let l = [<td>{k}</td>, <td>{v.NodeName}</td>, <td>{v.Height}</td>, <td>{mnrs}</td>]
|
||||||
if (best !== v.Height) {
|
if (best !== v.Height) {
|
||||||
l = <tr style={{color: '#f00'}}>{l}</tr>
|
l = <tr style={{color: '#f00'}}>{l}</tr>
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user