Skip to content
Snippets Groups Projects
Commit 223b2748 authored by Fabian Schuh's avatar Fabian Schuh
Browse files

[docs] fix intendation errors when building docs

parent b46cd148
No related branches found
No related tags found
No related merge requests found
...@@ -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"
......
...@@ -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
......
...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment