Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
34b3a035
Commit
34b3a035
authored
6 years ago
by
crokkon
Browse files
Options
Downloads
Patches
Plain Diff
beem/block.py: documentation typos
parent
916e2a80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beem/block.py
+4
-4
4 additions, 4 deletions
beem/block.py
with
4 additions
and
4 deletions
beem/block.py
+
4
−
4
View file @
34b3a035
...
@@ -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.
A
ddition
ally
to the block data, the block number is stored as self[
"
id
"
] or self.identifier.
In a
ddition 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
"""
"""
Retu
r
ns 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
"""
"""
Retu
r
ns the block number
"""
return
self
.
identifier
return
self
.
identifier
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment