Update Block.py
Updated the Block class API docstrings with the information from
@@ -5,7 +5,7 @@ class Block:
@property
def TransactionCount(self):
- """
+ """Get the number of transactions in the current block
:return:
"""
@@ -13,7 +13,7 @@ class Block:
@property
def Transactions(self):
- """
+ """Get all transactions in the current block
:return:
"""
@@ -21,7 +21,7 @@ class Block:
@property
def Index(self):
- """
+ """Get the current block height
Returns:
@@ -30,7 +30,7 @@ class Block:
@property
def Hash(self):
- """
+ """Get the hash of the block
:return:
"""
@@ -38,7 +38,7 @@ class Block:
@property
def Timestamp(self):
- """
+ """Get the timestamp of the block
:return:
"""
@@ -46,7 +46,7 @@ class Block:
@property
def Version(self):
- """
+ """Get Block version number
:return:
"""
@@ -54,7 +54,7 @@ class Block:
@property
def PrevHash(self):
- """
+ """Get the hash of the previous block
:return:
"""
@@ -62,7 +62,7 @@ class Block:
@property
def MerkleRoot(self):
- """
+ """Get the Merkle Tree root for all transactions in that block
:return:
"""
@@ -70,7 +70,7 @@ class Block:
@property
def ConsensusData(self):
- """
+ """Get consensus data for this block (pseudo-random number generated by consensus node)
:return:
"""
@@ -78,7 +78,7 @@ class Block:
@property
def NextConsensus(self):
- """
+ """Get the hash value for the next bookkeeper contract
:return:
"""
@@ -86,30 +86,26 @@ class Block:
def GetTransactionCount(block):
- """
-
- returns the number of transactions in a block
-
+ """Get the number of transactions in a block
+ :return: the number of transactions in a block
"""
pass
def GetTransactions(block):
- """
- returns a list of transactions contained in a block
-
+ """Get all transactions in a block
+ :return: a list of transactions contained in a block
"""
pass
def GetTransaction(block, index):
- """
+ """Get the transaction specified in a block
:param block: the block to get the transaction from
- :param index: the index of the transaction within the lock
-
+ :param index: the index of the transaction within the block
"""
