aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/views/chain.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
committerobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
commit893e9256a0f48b8fd45f29717145a4df23a3a799 (patch)
tree297d4267f08ea9552e778d5d7bda1f3d9e8f89de /ethereal/assets/qml/views/chain.qml
parent4e6defd6570dd213c53d73035e235431bb5408b5 (diff)
downloadgo-tangerine-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.gz
go-tangerine-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.zst
go-tangerine-893e9256a0f48b8fd45f29717145a4df23a3a799.zip
Some minor corrections
Diffstat (limited to 'ethereal/assets/qml/views/chain.qml')
-rw-r--r--ethereal/assets/qml/views/chain.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/ethereal/assets/qml/views/chain.qml b/ethereal/assets/qml/views/chain.qml
index ed019acf1..5bfc4b6c7 100644
--- a/ethereal/assets/qml/views/chain.qml
+++ b/ethereal/assets/qml/views/chain.qml
@@ -98,15 +98,18 @@ Rectangle {
function addBlock(block, initial) {
- var txs = JSON.parse(block.transactions);
- var amount = 0
if(initial == undefined){
initial = false
}
+ /*
+ var txs = JSON.parse(block.transactions);
if(txs != null){
amount = txs.length
}
+ */
+ var txs = block.transactions;
+ var amount = block.transactions.length;
if(initial){
blockModel.append({size: block.size, number: block.number, name: block.name, gasLimit: block.gasLimit, gasUsed: block.gasUsed, coinbase: block.coinbase, hash: block.hash, txs: txs, txAmount: amount, time: block.time, prettyTime: convertToPretty(block.time)})
@@ -241,8 +244,8 @@ Rectangle {
singleBlock.set(0,block)
popup.height = 300
transactionModel.clear()
- if(block.txs != undefined){
- for(var i = 0; i < block.txs.count; ++i) {
+ if(block.txs !== undefined){
+ for(var i = 0; i < block.txs.length; i++) {
transactionModel.insert(0, block.txs.get(i))
}
if(block.txs.get(0).data){