Skip to content
Snippets Groups Projects
Commit 34b3a035 authored by crokkon's avatar crokkon
Browse files

beem/block.py: documentation typos

parent 916e2a80
No related branches found
No related tags found
No related merge requests found
...@@ -20,12 +20,12 @@ class Block(BlockchainObject): ...@@ -20,12 +20,12 @@ class Block(BlockchainObject):
:param bool only_virtual_ops: Includes only virtual operations (default: False) :param bool only_virtual_ops: Includes only virtual operations (default: False)
Instances of this class are dictionaries that come with additional Instances of this class are dictionaries that come with additional
methods (see below) that allow dealing with a block and it's methods (see below) that allow dealing with a block and its
corresponding functions. corresponding functions.
When only_virtual_ops is set to True, only_ops is always set to True. When only_virtual_ops is set to True, only_ops is always set to True.
Additionally to the block data, the block number is stored as self["id"] or self.identifier. In addition to the block data, the block number is stored as self["id"] or self.identifier.
.. code-block:: python .. code-block:: python
...@@ -137,7 +137,7 @@ class Block(BlockchainObject): ...@@ -137,7 +137,7 @@ class Block(BlockchainObject):
return ops return ops
def ops_statistics(self, add_to_ops_stat=None): def ops_statistics(self, add_to_ops_stat=None):
"""Retuns a statistic with the occurance of the different operation types""" """Returns a statistic with the occurance of the different operation types"""
if add_to_ops_stat is None: if add_to_ops_stat is None:
import beembase.operationids import beembase.operationids
ops_stat = beembase.operationids.operations.copy() ops_stat = beembase.operationids.operations.copy()
...@@ -190,5 +190,5 @@ class BlockHeader(BlockchainObject): ...@@ -190,5 +190,5 @@ class BlockHeader(BlockchainObject):
@property @property
def block_num(self): def block_num(self):
"""Retuns the block number""" """Returns the block number"""
return self.identifier return self.identifier
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment