Skip to content

Commit

Permalink
Display full hash in table
Browse files Browse the repository at this point in the history
Because of the table column width, the hash was getting cut off which
hid some information that could be useful for someone experiementing
with this tool. By bumping the width of the value field up to 70. It
will display the full hash.

Before: 0000f96fdd0178807…
After: 00004556469a14cbbb0f6383a6bfd7c61aa6c0a8c78d4b9a08a8478bc060a73e

Closes 0xs34n#13
  • Loading branch information
jakecraige committed Sep 15, 2017
1 parent ea29833 commit c369707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli/util/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function logBlockchain(blockchain) {
const table = new Table({
style:{border:[],header:[]},
wordWrap: true,
colWidths:[20,20]
colWidths:[20,66]
});
const object = JSON.parse(JSON.stringify(block))
for(let key in object) {
Expand Down Expand Up @@ -38,4 +38,4 @@ function logBlockchain(blockchain) {
})
}

module.exports = logBlockchain;
module.exports = logBlockchain;

0 comments on commit c369707

Please sign in to comment.