Closed bh2smith closed 6 years ago
('Web3.py only accepts checksum addresses.
This is not the problem I am facing at the moment. It appears to be an empty array in client.blocks
I'm facing the same problem using Ubuntu
Please see #161 and the proposed solution.
Note that once the sendtx is accepted by the CLI (without error); We get the following problem
API Exception: {'type': 'AttributeError', 'args': ("'str' object has no attribute 'amount1'",), 'message': "'str' object has no attribute 'amount1'"}
Traceback (most recent call last):
File "~/plasma-mvp/plasma_core/chain.py", line 55, in validate_transaction
output_amount = tx.amount1 + tx.amount2
AttributeError: 'str' object has no attribute 'amount1'
Which is resolved with a try-catch with tx (since sometimes the encoded version is passed and sometimes not).
@kfichter, I will include my fix to both of these (since they are directly related to the same issue) so not to spam your issue-box.
Hey @bh2smith can you confirm this is fixed?
@kfichter yes, this is now working, but I am wondering why the transaction fee attribute has been removed from this feature?
We switched over to implicit transaction fees (fee = input value - output value).
Issue Type
Current Behavior
sendtx example is missing parameter,
cur12
for TokenAddress that was introduced in commit 9feb73e174a4cebef343852d4c07ae1c3c0fc991. However, even with the inclusion of a null address, 0x0, a call to sendtx yields an AttributeError at validate_transaction.submitblock and withdrawdeposit also crashing;
Steps to Reproduce
results in
results in
with additional traceback (from child-chain logs)
results in
and
results in
(but these may be due to previous errors)...
Expected Behavior
Sample commands should be updated with feature changes.
System Specs
pip freeze
):asn1crypto==0.24.0 atomicwrites==1.1.5 attrdict==2.0.0 attrs==18.1.0 bitcoin==1.1.42 certifi==2018.4.16 cffi==1.11.5 chardet==3.0.4 click==6.7 cryptography==2.2.2 cytoolz==0.9.0.1 eth-abi==1.1.1 eth-account==0.2.3 eth-hash==0.1.0 eth-keyfile==0.5.1 eth-keys==0.2.0b3 eth-rlp==0.1.2 eth-tester==0.1.0b15 eth-utils==1.0.3 ethereum==2.3.0 ethjsonrpc==0.4.0 flake8==3.5.0 future==0.16.0 hexbytes==0.1.0 idna==2.7 json-rpc==1.10.8 lru-dict==1.1.6 mccabe==0.6.1 more-itertools==4.2.0 nose==1.3.7 parsimonious==0.8.0 pbkdf2==1.3 plasma==0.0.0 pluggy==0.6.0 plyvel==1.0.4 py==1.5.3 py-ecc==1.4.2 py-solc==3.1.0 pycodestyle==2.3.1 pycparser==2.18 pycryptodome==3.6.1 pyethash==0.1.27 pyflakes==1.6.0 pylru==1.1.0 pyOpenSSL==18.0.0 pysha3==1.0.2 pytest==3.6.1 PyYAML==3.12 repoze.lru==0.7 requests==2.19.0 rlp==0.6.0 scrypt==0.8.6 semantic-version==2.6.0 six==1.11.0 toolz==0.9.0 urllib3==1.23 virtualenv==16.0.0 web3==4.3.0 websockets==4.0.1 Werkzeug==0.13