Closed amani1104 closed 5 years ago
This will be investigated. In the meantime you can use tzscan backend to complete your payments.
The same error occurs with tzscan. I'm using this command:
python3 src/main.py -E /usr/local/bin -C 105 -M 3 -P tzscan -D
It is not likely. Tzscan backend cannot produce the same error.
Default backend is tzscan, if you do not use -P, tzscan will be used.
Then it's strange. The command I initially used and posted in this issue is this:
python3 src/main.py -V -E /usr/local/bin -C 105 -M 3 -D
The error log shows that TRD tries to query the local node, although it shouldn't:
--> Verbose : Command is |/usr/local/bin/tezos-client rpc get http://127.0.0.1:8732/chains/main/blocks/BMMHe9ZKS7ETDFeQ5VRA9nUjyRE9QMeCJKLs2qjnJLbhMkL3fR6~45503/context/raw/json/rolls/owner/snapshot/105/|
Did you try to make a clean git clone? The behavior is not as it should be. RPC error needs to be fixed, but tzscan backend should work fine.
Ok, with a clean clone TRD loads from the tzscan API. However, it now throws the following error:
2019-05-29 09:42:49,016 - producer - Error at payment producer loop
Traceback (most recent call last):
File "/home/tezos/tezos-reward-distributor/src/pay/payment_producer.py", line 207, in try_to_pay
reward_logs, total_amount = self.payment_calc.calculate(reward_model)
File "/home/tezos/tezos-reward-distributor/src/calc/phased_payment_calculator.py", line 77, in calculate
assert self.almost_equal(founder_parent.ratio3, calculated_founder_rewards)
AttributeError: 'NoneType' object has no attribute 'ratio3'
Did you set your fee to "0"? This error happens if no reward is generated. In order to cover this case, I made small changes. You may git pull, and try again.
Yes, fee is set to "0". It is working now with your fix. Many thanks!
The way to query the selected snaphot has changed with Athens. This is why RPC api is broken. It will be fixed shortly.
Full nodes will not be able to query past selected snapshots.
Reopening. Closing was unintentional.
RPC is fixed. However in order to use RPC layer for reward calculations you need to have an archive node. FULL node does not keep track of records to handle reward payments.
An rpc reward class is added to support use of public nodes to overcome this limitation. You can try it with -P prpc switch.
However, use of tzscan back end is a better option.
Closing due to inactivity.
Describe the bug When performing a payment, TRD v5 prints the following error message in verbose mode:
To Reproduce The command I used to initiate the payment is the following:
python3 src/main.py -V -E /usr/local/bin -C 105 -M 3 -D
When entering the command
tezos-client rpc get http://127.0.0.1:8732/chains/main/blocks/BMMHe9ZKS7ETDFeQ5VRA9nUjyRE9QMeCJKLs2qjnJLbhMkL3fR6~45503/context/raw/json/rolls/owner/snapshot/105/
used by TRD, I receive the following error message:Environment