Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
J
jussi
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • hive
  • jussi
  • Issues
  • #2

Closed
Open
Opened May 21, 2020 by oflyhigh@oflyhighDeveloper

JUSSI enabled nodes failed to process `network_ broadcast_ api.broadcast_ transaction`.

I accidentally found that JUSSI enabled nodes could not process network_ broadcast_ api.broadcast_ transaction.

To reproduce:

Step 1

Make an API Call to https://api.hive.blog (JUSSI enabled)

curl -s --data '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]},"max_block_age":50}, "id":1}' https://api.hive.blog

Check the response:

{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal Error","data":{"error_id":"b39f68b2-729c-4a3d-8c0e-3a55d3ae0559","jussi_request_id":"000136681014195215"}}}

Step 2

Make API Call to https://api.anyx.io (without JUSSI)

curl -s --data '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]},"max_block_age":50}, "id":1}' https://anyx.io

Check the response:

{"error":{"code":-32000,"data":{"code":3030000,"message":"missing required posting authority" ...

Conclusion

We expect the two nodes to return the same information (step 2 is correct), but step 1 returns:"Internal Error".

In my opinion, for an API call, whether or not the node is JUSSI enabled, the result should be consistent. So, I think this may be a BUG of JUSSI.

Notes

condenser_api.broadcast_transaction works correctly whether the node is JUSSI enabled or not.

Edited Oct 15, 2020 by oflyhigh
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: hive/jussi#2