Tribler / anydex-core

The Universal Decentralized Exchange
GNU Lesser General Public License v3.0
10 stars 6 forks source link

Fixed an error where trading_peer was not set in a transaction #48

Closed devos50 closed 4 years ago

devos50 commented 4 years ago

When using a non-memory database, we fetch the transaction every time from the database. This will reset the trading_peer attribute, which is not persisted in the database. However, it seems that it was not reinitialised when we process an incoming payment.

Also fixed a minor error in a logging statement.

I tested these changes with a validation experiment using a real sqlite database, see here.