Skip to content

Commit 20b4546

Browse files
authored
Merge pull request #401 from fiestared/ALIS-4141
Alis 4141
2 parents c3cce1c + 12b21d9 commit 20b4546

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

src/common/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
# Private chain
392392
HISTORY_RANGE_DAYS = 30
393393
AVERAGE_BLOCK_TIME = 30
394-
TRANSACTION_CONFIRM_COUNT = 15
394+
TRANSACTION_CONFIRM_COUNT = 5
395395

396396
AUTHLETE_CLIENT_ENDPOINT = 'https://api.authlete.com/api/client'
397397
AUTHLETE_SCOPE_READ = 'read'

src/handlers/me/wallet/tip/me_wallet_tip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def exec_main_proc(self):
8282
if PrivateChainUtil.is_transaction_completed(transaction_hash):
8383
# バーンのトランザクション処理
8484
burn_transaction = self.__burn_transaction(burn_quantity, from_user_eth_address, auth, headers)
85+
else:
86+
logging.info('Burn was not executed because tip transaction was uncompleted.')
8587
except Exception as err:
8688
logging.fatal(err)
8789
traceback.print_exc()

tests/common/test_private_chain_util.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ def test_is_transaction_completed_ok(self):
6868
def test_is_transaction_completed_ok_last(self):
6969
with patch('requests.post') as mock_post:
7070
mock_post.side_effect = [
71-
FakeResponse(status_code=200, text='{}'),
72-
FakeResponse(status_code=200, text='{}'),
73-
FakeResponse(status_code=200, text='{}'),
74-
FakeResponse(status_code=200, text='{}'),
75-
FakeResponse(status_code=200, text='{}'),
76-
FakeResponse(status_code=200, text='{}'),
77-
FakeResponse(status_code=200, text='{}'),
78-
FakeResponse(status_code=200, text='{}'),
79-
FakeResponse(status_code=200, text='{}'),
80-
FakeResponse(status_code=200, text='{}'),
8171
FakeResponse(status_code=200, text='{}'),
8272
FakeResponse(status_code=200, text='{}'),
8373
FakeResponse(status_code=200, text='{}'),
@@ -94,16 +84,6 @@ def test_is_transaction_completed_ok_last(self):
9484
def test_is_transaction_completed_ok_multiple_logs(self):
9585
with patch('requests.post') as mock_post:
9686
mock_post.side_effect = [
97-
FakeResponse(status_code=200, text='{}'),
98-
FakeResponse(status_code=200, text='{}'),
99-
FakeResponse(status_code=200, text='{}'),
100-
FakeResponse(status_code=200, text='{}'),
101-
FakeResponse(status_code=200, text='{}'),
102-
FakeResponse(status_code=200, text='{}'),
103-
FakeResponse(status_code=200, text='{}'),
104-
FakeResponse(status_code=200, text='{}'),
105-
FakeResponse(status_code=200, text='{}'),
106-
FakeResponse(status_code=200, text='{}'),
10787
FakeResponse(status_code=200, text='{}'),
10888
FakeResponse(status_code=200, text='{}'),
10989
FakeResponse(status_code=200, text='{}'),
@@ -120,16 +100,6 @@ def test_is_transaction_completed_ok_multiple_logs(self):
120100
def test_is_transaction_completed_ng_count_over(self):
121101
with patch('requests.post') as mock_post:
122102
mock_post.side_effect = [
123-
FakeResponse(status_code=200, text='{}'),
124-
FakeResponse(status_code=200, text='{}'),
125-
FakeResponse(status_code=200, text='{}'),
126-
FakeResponse(status_code=200, text='{}'),
127-
FakeResponse(status_code=200, text='{}'),
128-
FakeResponse(status_code=200, text='{}'),
129-
FakeResponse(status_code=200, text='{}'),
130-
FakeResponse(status_code=200, text='{}'),
131-
FakeResponse(status_code=200, text='{}'),
132-
FakeResponse(status_code=200, text='{}'),
133103
FakeResponse(status_code=200, text='{}'),
134104
FakeResponse(status_code=200, text='{}'),
135105
FakeResponse(status_code=200, text='{}'),

0 commit comments

Comments
 (0)