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

Transaction lost after broadcast #2376

Closed
1 of 17 tasks
abitmore opened this issue Mar 9, 2021 · 2 comments · Fixed by #2383
Closed
1 of 17 tasks

Transaction lost after broadcast #2376

abitmore opened this issue Mar 9, 2021 · 2 comments · Fixed by #2383

Comments

@abitmore
Copy link
Member

abitmore commented Mar 9, 2021

Bug Description

It was reported in #490 that transactions can sometimes get lost without being propagated. It's believed that the issue occurs more frequently when the node is busy.

BTW there were efforts to get around the issue in Steem (see steemit/steem@0fb4057) and an attempt to port it to BitShares (see #703).

I think it is due to the use of std::unordered_set which is not thread-safe.

        std::unordered_set<item_id> inventory_to_advertise;
        inventory_to_advertise.swap(_new_inventory);

(Update: there were some logs here which are removed later because they were for another issue(#2378).)

Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.

  • API (the application programming interface)
  • Build (the build process or something prior to compiled code)
  • CLI (the command line wallet)
  • Deployment (the deployment process after building such as Docker, Travis, etc.)
  • DEX (the Decentralized EXchange, market engine, etc.)
  • P2P (the peer-to-peer network for transaction/block propagation)
  • Performance (system or user efficiency, etc.)
  • Protocol (the blockchain logic, consensus, validation, etc.)
  • Security (the security of system or user data, etc.)
  • UX (the User Experience)
  • Other (please add below)

CORE TEAM TASK LIST

  • Evaluate / Prioritize Bug Report
  • Refine User Stories / Requirements
  • Define Test Cases
  • Design / Develop Solution
  • Perform QA/Testing
  • Update Documentation
@abitmore
Copy link
Member Author

abitmore commented Mar 10, 2021

Actually, in the Github Action logs, the value of peer->peer_needs_sync_items_from_us is different between 2 runs. It was another issue. Created issue #2378 and PR #2377 for it. OP updated.

@abitmore
Copy link
Member Author

Should be fixed by #2383.

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

Successfully merging a pull request may close this issue.

1 participant