Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0c48fed
solana:v1.7.9-testnet
vasiliy-zaznobin Nov 15, 2021
ae4fb77
Merge remote-tracking branch 'origin/develop' into solana_v1.7.9-testnet
vasiliy-zaznobin Nov 15, 2021
88557a0
all uniswap tests
vasiliy-zaznobin Nov 16, 2021
45c8ae2
Expand debug output for ExecuteTrxFromAccountDataIterative
vasiliy-zaznobin Dec 1, 2021
d87bbdb
Merge remote-tracking branch 'origin/develop' into neon-swap
vasiliy-zaznobin Dec 1, 2021
dddf1e9
Use %s
vasiliy-zaznobin Dec 1, 2021
d815fb5
SOLANA_REVISION:=v1.7.9-testnet
vasiliy-zaznobin Dec 1, 2021
3adb0c3
Use str()
vasiliy-zaznobin Dec 1, 2021
54e6446
Use __dict__
vasiliy-zaznobin Dec 1, 2021
114aac7
Add the 'method' json field in a response
vasiliy-zaznobin Dec 2, 2021
45deb61
Add the 'method' json field in a response as in the request
vasiliy-zaznobin Dec 3, 2021
e8c35b3
Add the request['method'] only in debug output, but in a responce
vasiliy-zaznobin Dec 3, 2021
2c77be1
Add the request['method'] only if exists else '---'
vasiliy-zaznobin Dec 3, 2021
234526c
Introduce DEBUG_SENDING_SOLANA_TRANSACTION
vasiliy-zaznobin Dec 3, 2021
64eaed9
Use string type for DEBUG_SENDING_SOLANA_TRANSACTION
vasiliy-zaznobin Dec 3, 2021
3996c99
Rename DEBUG_SENDING_SOLANA_TRANSACTION to LOG_SENDING_SOLANA_TRANSAC…
vasiliy-zaznobin Dec 3, 2021
c6841cf
Merge remote-tracking branch 'origin/develop' into 349-Improve_neon-p…
vasiliy-zaznobin Dec 6, 2021
fcb96c5
Move LOG_SENDING_SOLANA_TRANSACTION to environment.py after merging d…
vasiliy-zaznobin Dec 6, 2021
e8bbbf1
Merge remote-tracking branch 'origin/develop' into 349-Improve_neon-p…
vasiliy-zaznobin Dec 6, 2021
9a3ee4c
Remove some code that is used for debugging
vasiliy-zaznobin Dec 6, 2021
fc0c495
#351 fix canceller droping running transactions
otselnik Dec 6, 2021
139a5a7
Merge remote-tracking branch 'origin/351_canceller_fix' into 349-Impr…
vasiliy-zaznobin Dec 6, 2021
537f08c
Merge remote-tracking branch 'origin/373_solana_v1.7.9-testnet' into …
vasiliy-zaznobin Dec 6, 2021
5faa5ee
Fix after merging
vasiliy-zaznobin Dec 6, 2021
4df95a5
Merge branch '349-Improve_neon-proxy_logging_to_filter_a_request_and_…
vasiliy-zaznobin Dec 6, 2021
75eceb2
Fix after merging
vasiliy-zaznobin Dec 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#351 fix canceller droping running transactions
  • Loading branch information
otselnik committed Dec 6, 2021
commit fc0c4954e8b71f52f37c1b96663ead5476ace088
1 change: 1 addition & 0 deletions .buildkite/steps/deploy-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ docker run --rm -ti --network=host \
--entrypoint ./deploy-test.sh \
${EXTRA_ARGS:-} \
$UNISWAP_V2_CORE_IMAGE \
all

echo "Run tests return"
exit 0
15 changes: 9 additions & 6 deletions proxy/indexer/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ def __init__(self, storage_account):


class ContinueStruct:
def __init__(self, signature, results, accounts = None):
def __init__(self, signature, results, slot, accounts = None):
self.signatures = [signature]
self.results = results
self.slot = slot
self.accounts = accounts


Expand Down Expand Up @@ -165,7 +166,7 @@ def process_receipts(self):
continue_result.signatures,
storage_account,
continue_result.accounts,
slot
max(slot, continue_result.slot)
)

del continue_table[storage_account]
Expand Down Expand Up @@ -271,6 +272,7 @@ def process_receipts(self):
logger.error("Strange behavior. Pay attention. BLOCKED ACCOUNTS NOT EQUAL")
trx_table[eth_signature].got_result = continue_result.results
trx_table[eth_signature].signatures += continue_result.signatures
trx_table[eth_signature].slot = max(trx_table[eth_signature].slot, continue_result.slot)

del continue_table[storage_account]

Expand All @@ -296,7 +298,7 @@ def process_receipts(self):

continue_table[storage_account].results = got_result
else:
continue_table[storage_account] = ContinueStruct(signature, got_result, blocked_accounts)
continue_table[storage_account] = ContinueStruct(signature, got_result, slot, blocked_accounts)

elif instruction_data[0] == 0x0b or instruction_data[0] == 0x16: # ExecuteTrxFromAccountDataIterative ExecuteTrxFromAccountDataIterativeV02
if instruction_data[0] == 0x0b:
Expand All @@ -319,7 +321,7 @@ def process_receipts(self):
else:
holder_table[holder_account] = HolderStruct(storage_account)
else:
continue_table[storage_account] = ContinueStruct(signature, None, blocked_accounts)
continue_table[storage_account] = ContinueStruct(signature, None, slot, blocked_accounts)
holder_table[holder_account] = HolderStruct(storage_account)


Expand All @@ -329,7 +331,7 @@ def process_receipts(self):
storage_account = trx['transaction']['message']['accountKeys'][instruction['accounts'][0]]
blocked_accounts = [trx['transaction']['message']['accountKeys'][acc_idx] for acc_idx in instruction['accounts'][6:]]

continue_table[storage_account] = ContinueStruct(signature, ([], "0x0", 0, [], trx['slot']), blocked_accounts)
continue_table[storage_account] = ContinueStruct(signature, ([], "0x0", 0, [], trx['slot']), slot, blocked_accounts)

elif instruction_data[0] == 0x0d:
# logger.debug("{:>10} {:>6} PartialCallOrContinueFromRawEthereumTX 0x{}".format(slot, counter, instruction_data.hex()))
Expand All @@ -349,6 +351,7 @@ def process_receipts(self):

if eth_signature in trx_table:
trx_table[eth_signature].signatures.append(signature)
trx_table[eth_signature].slot = max(trx_table[eth_signature].slot, slot)
else:
trx_table[eth_signature] = TransactionStruct(
eth_trx,
Expand Down Expand Up @@ -396,7 +399,7 @@ def process_receipts(self):

continue_table[storage_account].results = got_result
else:
continue_table[storage_account] = ContinueStruct(signature, got_result, blocked_accounts)
continue_table[storage_account] = ContinueStruct(signature, got_result, slot, blocked_accounts)
holder_table[holder_account] = HolderStruct(storage_account)

if instruction_data[0] > 0x16:
Expand Down