Skip to content
Snippets Groups Projects
Commit 91df90ac authored by Patricio Kumagae's avatar Patricio Kumagae
Browse files

Tarea #21071 - [BFA-registro] No se pueden agregar cuentas

parent 367f43a3
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@ NODE_URL = 'http://10.23.10.72:8501' # salberchain
DISTILLERY_ADDRESS = '0xBCE634B5cd8ba22A66A5CDedFb1bC56EFFb8a525' # distillery
DISTRIBUTOR_ACCOUNT = '0x25c185DcaeD065BAC30a0a1cd0688A7aA02896d7' # cuenta con mucho ether, vive en el 72
DISTRIBUTOR_PASSPHRASE = ''
UNLOCK_TIMEOUT = 0
DISTILLERY_ABI = '[ { "anonymous": false, "inputs": [ { "indexed": false, "name": "amount", "type": "uint256" } ], ' \
'"name": "proofOfControlWeiAmountChanged", "type": "event" }, { "constant": false, "inputs": [ { ' \
......
......@@ -31,7 +31,8 @@ DISTILLERY_ADDRESS = '0x9Da2aC818d39f4342f67eC94F86865A34b642342' # distillery
DISTRIBUTOR_ACCOUNT = '0xc9cec0B3fbb502B2eF4d03eBf6a1A612CBdE53E3' # cuenta con mucho ether, vive en el 72
# 0x21ea59FC5cE54a827E20BC9b736FeeD8F9C880Ff
DISTRIBUTOR_PASSPHRASE = ''
UNLOCK_TIMEOUT = 0
# cuentas para pruebas: 0xd57c1f52ff4513c721bd22ccbee55b7cef440b5c y 0x6664e892a36e74e1e618b9bfb25caa0f18b311a4
# passphrase prueba para ambas cuentas
......
......@@ -44,6 +44,8 @@ NODE_URL = 'http://10.24.10.14:8545' # mainnet (bootnode)
#CFG BLOCKCHANGE
DISTILLERY_ADDRESS = '0xc3cF96aF51d3c41DfBE428dE75a8E5597d4D7A7B' # distillery
DISTRIBUTOR_ACCOUNT = '0xBF1ce9Cca7dedea3FDB22d169B49643664602eE1' # cuenta con mucho ether
DISTRIBUTOR_PASSPHRASE = ''
UNLOCK_TIMEOUT = 0
DISTILLERY_ABI = '[ { "anonymous": false, "inputs": [ { "indexed": false, "name": "amount", "type": "uint256" } ], ' \
'"name": "proofOfControlWeiAmountChanged", "type": "event" }, { "constant": false, "inputs": [ { ' \
'"name": "acc", "type": "address" }, { "name": "limit", "type": "uint256" } ], ' \
......@@ -115,4 +117,4 @@ DATA_SITEKEY = '6LdIsXoUAAAAAFQfkzQWPpJ5ERGdxmY8YT4bFLmt'
RAVEN_CONFIG = {
'dsn': 'http://0f6b7e857c31436badd6f5a33b6795e4:21003d12f52b4e2cb4efba1f27fd1780@10.1.100.118:9000/81',
}
\ No newline at end of file
}
......@@ -33,6 +33,8 @@ NODE_URL = 'http://10.23.10.71:54450' # salberchain
DISTILLERY_ADDRESS = '0x822c2b518dCfEE69d435E0C5F2e6d196FcC8320E' # distillery
DISTRIBUTOR_ACCOUNT = '0xA9cAc6C2EF4909A05eF24A12Ecadf9E541B5995F' # cuenta con mucho ether con su clave privada en
# el 10.23.10.73
DISTRIBUTOR_PASSPHRASE = ''
UNLOCK_TIMEOUT = 0
# cuentas para pruebas: 0xd57c1f52ff4513c721bd22ccbee55b7cef440b5c y 0x6664e892a36e74e1e618b9bfb25caa0f18b311a4
# passphrase prueba para ambas cuentas
......@@ -107,4 +109,4 @@ RAVEN_CONFIG = {
'dsn': 'http://af8a61a068af431eb80d8ee277f84364:887b38e0b1594fabb844b75309bdaab7@10.1.100.118:9000/79',
}
BLOCK_NUMBER_TO_START = 834942 # numero de bloque para empezar a buscar en el filter
\ No newline at end of file
BLOCK_NUMBER_TO_START = 834942 # numero de bloque para empezar a buscar en el filter
......@@ -66,6 +66,8 @@ class Distillery:
def execute_transaction(self, contract, transaction_data, exception_message=""):
es_valido = contract.call(transaction_data)
self.gateway.w3.personal.unlockAccount(settings.DISTRIBUTOR_ACCOUNT, settings.DISTRIBUTOR_PASSPHRASE, settings.UNLOCK_TIMEOUT)
if es_valido:
# transaction_data['gasLimit'] = 1000000000000
tx_hash = contract.transact(transaction_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment