Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
add transaction count to block
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie committed Sep 4, 2016
1 parent 1af08bb commit a608b2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethereum/block.py
Expand Up @@ -195,6 +195,10 @@ def __getattribute__(self, name):
def chain_difficulty(self):
return self.header.number + 1

@property
def transaction_count(self):
return len(self.transactions)


BLANK_UNCLES_HASH = sha3(rlp.encode([]))

Expand Down

0 comments on commit a608b2b

Please sign in to comment.