Compare commits
8 Commits
master
...
allow-rela
Author | SHA1 | Date | |
---|---|---|---|
|
60b45faa6c | ||
|
86a47f4a0b | ||
|
7af04fa0e8 | ||
|
bc871a6844 | ||
|
4198b092a6 | ||
|
30208b4f8e | ||
|
d5946f7df1 | ||
|
9e309db876 |
@ -66,8 +66,12 @@ function processCollectedSignaturesBuilder(config) {
|
||||
if (allowanceList.indexOf(recipient) === -1) {
|
||||
if (ORACLE_HOME_TO_FOREIGN_CHECK_SENDER === 'true') {
|
||||
logger.debug({ txHash: originalTxHash }, 'Requested sender of an original withdrawal transaction')
|
||||
const sender = (await web3Home.eth.getTransaction(originalTxHash)).from.toLowerCase()
|
||||
if (allowanceList.indexOf(sender) === -1) {
|
||||
const originalTx = await web3Home.eth.getTransaction(originalTxHash)
|
||||
logger.debug(`Tx data of an original withdrawal transaction ${originalTx.input}`)
|
||||
const isRelayTokens = originalTx.input.slice(2, 10) === '5d1e9307'
|
||||
logger.info(`Is the relayTokens method invoked: ${isRelayTokens}`)
|
||||
const sender = originalTx.from.toLowerCase()
|
||||
if (allowanceList.indexOf(sender) === -1 && !isRelayTokens) {
|
||||
logger.info(
|
||||
{ sender, recipient },
|
||||
'Validator skips a transaction. Neither sender nor recipient addresses are in the allowance list.'
|
||||
|
Loading…
Reference in New Issue
Block a user