Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

【mongo-db-plugin】transaction_traces is null ? #6088

Closed
guaiguaihw opened this issue Oct 22, 2018 · 5 comments
Closed

【mongo-db-plugin】transaction_traces is null ? #6088

guaiguaihw opened this issue Oct 22, 2018 · 5 comments
Assignees

Comments

@guaiguaihw
Copy link

we enabled mongo-db-plugin, and we just need the transaction_traces table, so we disabled another four tables:

mongodb-store-blocks = false
mongodb-store-block-states = false
mongodb-store-transactions = false
mongodb-store-action-traces = false

but, we find that if we disabled action-traces, the table of transaction_traces is null. why?

@guaiguaihw
Copy link
Author

guaiguaihw commented Oct 22, 2018

image
when I read codes, find that if action_traces disabled, transaction_traces won't be inserted. I wonder it's reasonable or you should remind us in docs.

@littleLj
Copy link

我开了全部的collections , 还是没有数据。 1。3 还是好的。

@guaiguaihw
Copy link
Author

我开了全部的collections , 还是没有数据。 1。3 还是好的。

你的节点是什么版本?config.ini发出来哇

@littleLj
Copy link

我开了全部的collections , 还是没有数据。 1。3 还是好的。

你的节点是什么版本?config.ini发出来哇

I test again , it worked. data is writed to mongo.
found the write_atraces is false by debug .
I add two functions to parse action trace, not use the add_action_traces and fixed the bug.

@littleLj
Copy link

because the store_action_traces is 0
if( start_block_reached && store_action_traces && filter_include( atrace.receipt.receiver, atrace.act.name, atrace.act.authorization ) ) {

so , the added is 0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants