mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
fixed typo
This commit is contained in:
parent
8998625706
commit
3ec79a54e7
@ -426,9 +426,10 @@ class Bigchain(object):
|
|||||||
if self.get_transaction(transaction['id']):
|
if self.get_transaction(transaction['id']):
|
||||||
num_valid_transactions += 1
|
num_valid_transactions += 1
|
||||||
if num_valid_transactions > 1:
|
if num_valid_transactions > 1:
|
||||||
raise exceptions.DoubleSpend(
|
raise exceptions.DoubleSpend(('`{}` was spent more than'
|
||||||
'`{}` was spent more then once. There is a problem with the chain'.format(
|
' once. There is a problem'
|
||||||
txid))
|
' with the chain')
|
||||||
|
.format(txid))
|
||||||
|
|
||||||
if num_valid_transactions:
|
if num_valid_transactions:
|
||||||
return Transaction.from_dict(transactions[0])
|
return Transaction.from_dict(transactions[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user