Skip to content
GitLab
Explore
Sign in
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
223b2748
Commit
223b2748
authored
7 years ago
by
Fabian Schuh
Browse files
Options
Downloads
Patches
Plain Diff
[docs] fix intendation errors when building docs
parent
b46cd148
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bitshares/asset.py
+3
-2
3 additions, 2 deletions
bitshares/asset.py
bitshares/blockchain.py
+6
-9
6 additions, 9 deletions
bitshares/blockchain.py
bitshares/witness.py
+2
-2
2 additions, 2 deletions
bitshares/witness.py
with
11 additions
and
13 deletions
bitshares/asset.py
+
3
−
2
View file @
223b2748
...
@@ -497,6 +497,7 @@ class Asset(BlockchainObject):
...
@@ -497,6 +497,7 @@ class Asset(BlockchainObject):
:param float percentage_fee: Percentage of fee
:param float percentage_fee: Percentage of fee
:param bitshares.amount.Amount max_market_fee: Max Fee
:param bitshares.amount.Amount max_market_fee: Max Fee
"""
"""
assert
percentage_fee
<=
100
and
percentage_fee
>
0
assert
percentage_fee
<=
100
and
percentage_fee
>
0
flags
=
{
"
charge_market_fee
"
:
percentage_fee
>
0
}
flags
=
{
"
charge_market_fee
"
:
percentage_fee
>
0
}
...
@@ -520,8 +521,8 @@ class Asset(BlockchainObject):
...
@@ -520,8 +521,8 @@ class Asset(BlockchainObject):
def
update_feed_producers
(
self
,
producers
):
def
update_feed_producers
(
self
,
producers
):
"""
Update bitasset feed producers
"""
Update bitasset feed producers
:param list producers: List of accounts that are
:param list producers: List of accounts that are
allowed to produce
allowed to produce
a feed
a feed
"""
"""
assert
self
.
is_bitasset
,
\
assert
self
.
is_bitasset
,
\
"
Asset needs to be a bitasset/market pegged asset
"
"
Asset needs to be a bitasset/market pegged asset
"
...
...
This diff is collapsed.
Click to expand it.
bitshares/blockchain.py
+
6
−
9
View file @
223b2748
...
@@ -105,9 +105,8 @@ class Blockchain(object):
...
@@ -105,9 +105,8 @@ class Blockchain(object):
:param int start: Starting block
:param int start: Starting block
:param int stop: Stop at this block
:param int stop: Stop at this block
:param str mode: We here have the choice between
:param str mode: We here have the choice between
*
"
head
"
: the last block
"
head
"
(the last block) and
"
irreversible
"
(the block that is
*
"
irreversible
"
: the block that is confirmed by 2/3 of all
confirmed by 2/3 of all block producers and is thus irreversible)
block producers and is thus irreversible!
"""
"""
# Let's find out how often blocks are generated!
# Let's find out how often blocks are generated!
block_interval
=
self
.
chainParameters
().
get
(
"
block_interval
"
)
block_interval
=
self
.
chainParameters
().
get
(
"
block_interval
"
)
...
@@ -143,9 +142,8 @@ class Blockchain(object):
...
@@ -143,9 +142,8 @@ class Blockchain(object):
:param int start: Starting block
:param int start: Starting block
:param int stop: Stop at this block
:param int stop: Stop at this block
:param str mode: We here have the choice between
:param str mode: We here have the choice between
*
"
head
"
: the last block
"
head
"
(the last block) and
"
irreversible
"
(the block that is
*
"
irreversible
"
: the block that is confirmed by 2/3 of all
confirmed by 2/3 of all block producers and is thus irreversible)
block producers and is thus irreversible!
:param bool only_virtual_ops: Only yield virtual operations
:param bool only_virtual_ops: Only yield virtual operations
This call returns a list that only carries one operation and
This call returns a list that only carries one operation and
...
@@ -170,9 +168,8 @@ class Blockchain(object):
...
@@ -170,9 +168,8 @@ class Blockchain(object):
:param int start: Start at this block
:param int start: Start at this block
:param int stop: Stop at this block
:param int stop: Stop at this block
:param str mode: We here have the choice between
:param str mode: We here have the choice between
*
"
head
"
: the last block
"
head
"
(the last block) and
"
irreversible
"
(the block that is
*
"
irreversible
"
: the block that is confirmed by 2/3 of all
confirmed by 2/3 of all block producers and is thus irreversible)
block producers and is thus irreversible!
The dict output is formated such that ``type`` caries the
The dict output is formated such that ``type`` caries the
operation type, timestamp and block_num are taken from the
operation type, timestamp and block_num are taken from the
...
...
This diff is collapsed.
Click to expand it.
bitshares/witness.py
+
2
−
2
View file @
223b2748
...
@@ -9,7 +9,7 @@ class Witness(BlockchainObject):
...
@@ -9,7 +9,7 @@ class Witness(BlockchainObject):
:param str account_name: Name of the witness
:param str account_name: Name of the witness
:param bitshares bitshares_instance: BitShares() instance to use when
:param bitshares bitshares_instance: BitShares() instance to use when
accesing a RPC
accesing a RPC
"""
"""
type_ids
=
[
6
,
2
]
type_ids
=
[
6
,
2
]
...
@@ -39,7 +39,7 @@ class Witnesses(list):
...
@@ -39,7 +39,7 @@ class Witnesses(list):
"""
Obtain a list of **active** witnesses and the current schedule
"""
Obtain a list of **active** witnesses and the current schedule
:param bitshares bitshares_instance: BitShares() instance to use when
:param bitshares bitshares_instance: BitShares() instance to use when
accesing a RPC
accesing a RPC
"""
"""
def
__init__
(
self
,
bitshares_instance
=
None
):
def
__init__
(
self
,
bitshares_instance
=
None
):
self
.
bitshares
=
bitshares_instance
or
shared_bitshares_instance
()
self
.
bitshares
=
bitshares_instance
or
shared_bitshares_instance
()
...
...
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