Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement get_transaction for rocks-ah #2309

Open
roadscape opened this issue Apr 4, 2018 · 11 comments
Open

implement get_transaction for rocks-ah #2309

roadscape opened this issue Apr 4, 2018 · 11 comments

Comments

@roadscape
Copy link
Contributor

$ http -j post dev-ah-node jsonrpc=2.0 id=1 method=account_history_api.get_transaction params:='{"id":"36feddae5eb9efa309717d2af22e99814a8bd2e3"}'
{"jsonrpc":"2.0","error":{"code":-32003,"message":"Assert Exception:false: This API is not supported for account history backed by RocksDB","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"account_history_api.cpp","line":159,"method":"get_transaction","hostname":"","timestamp":"2018-04-03T18:06:19"},"format":"false: This API is not supported for account history backed by RocksDB","data":{}}]}},"id":"1"}

$ http -j post dev-ah-node jsonrpc=2.0 id=1 method=condenser_api.get_transaction params:='["36feddae5eb9efa309717d2af22e99814a8bd2e3"]'
{"jsonrpc":"2.0","error":{"code":-32003,"message":"Assert Exception:false: This API is not supported for account history backed by RocksDB","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"account_history_api.cpp","line":159,"method":"get_transaction","hostname":"","timestamp":"2018-04-03T18:02:43"},"format":"false: This API is not supported for account history backed by RocksDB","data":{}}]}},"id":"1"}
@mvandeberg
Copy link
Contributor

get_transaction hasn't been enabled on our nodes for about 10 months now. I do not see a reason why we need to add it back with the RocksDB Account History.

@roadscape
Copy link
Contributor Author

How else do you get the status of a transaction or find which block it's in?

Exchanges rely on this method through block explorers such as steemd.com; they use it to debug deposit/withdraw issues, and their users use these trx urls to file in support tickets.

Just because steemit.com doesn't use it doesn't mean it's worthless to everyone else...

@mvandeberg
Copy link
Contributor

That is the discussion of #486

@mvandeberg
Copy link
Contributor

Also, indexing transactions by id in SBDS should be trivial for long term lookup.

@aaroncox
Copy link
Contributor

aaroncox commented Apr 4, 2018

I'm weighing in to state that I have uses for get_transaction and would rather not see that responsibility moved from steemd to SBDS. This method IMO belongs in the node software and not in a 2nd layer solution.

If this method is removed from the node itself, it would force any 3rd party apps using it to either:

  1. depend on the SBDS installation maintained by Steemit Inc.
  2. maintain their own SBDS installation on top of a steemd node (increasing their TCO).

@mvandeberg
Copy link
Contributor

This can be added and done more efficiently than the existing account history plugin, but needs some dev time to do so. I've added this to our backlog.

@therealwolf42
Copy link
Contributor

@mvandeberg I'm currently working on a game which would rely on get_transaction for efficient fetching of data. Using a 2nd layer method is not safe enough for our purposes.

I know that you guys are currently pretty booked out, so whenever you can put a focus on it - would be amazing!

@youkaicountry
Copy link
Contributor

@therealwolf42 Thanks for reaching out. This issue isn't an immediate priority, but we are planning on implementing it after we have HF20 finished.

@noisy
Copy link

noisy commented Aug 13, 2018

yet another developer here, which is sad because of lack of support for get_transaction :(

@pauliusuza
Copy link

This is a must for us to be able to verify transaction validity directly from blockchain nodes

@Jolly-Pirate
Copy link
Contributor

Has this been/will be addressed yet?

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

No branches or pull requests

8 participants