Skip to content

Document purchase is getting stuck in platform mempool  #2412

Closed

Description

@pshenmic

Issue

I am trying to make a document purchase transaction in the network, but It keeps failing for me. I tried different combintations, but I'm kinda stuck, because it gets stuck in the mempool and I don't know how to debug whats
wrong.

Right now, transaction that I am trying to submit fails with error StateTransitionBroadcastError: state transition already in mempool, and when I check it with check_tx Tenderdash RPC query, it gives me no error

02007199f1f68404c86ecf60d9cb93aef318fa0f2b08e59ffd176bdef43154ffde6b01050000cfa3110bbbda56156377a2c8c94ab64388c7c540bae3e274049a0f34b7565a6e0205436c61696daade6e7797aad3c48fb55535bfd84fdd44ab0154d98224e21dd0553d5b36a90503fb27100001411f18a46b4ac924caa187565fbaac72c85091d7a101aa9160269b6579fed87be3d705065589ed3b21e3f50be258e6af113bdfe273c2e385e4d2aefa2cbe36183272

I am trying to buy document with the buyer Identity from seller Identity

I am setting both identity contract nonce and document owner field to the buyer in the transaction, and signing it with the Identity https://testnet.platform-explorer.com/identity/8eTDkBhpQjHeqgbVeriwLeZr1tCa6yBGw76SckvD1cwc
public key id 1 (2c5f3014afb8f8ba206e82e0689407a413ae6fd1)

Context

I am testing document purchases bindings for JS SDK from my own branch. Transfer and update prices work all good, but I am currently having issues submitting purchases transaction.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

Activity

  1. added
    bug
    on Jan 3, 2025
  2. changed the title [-]Document purchase throws InvalidSignaturePublicKeySecurityLevelError[/-] [+]Document purchase is getting stuck in platform mempool [/+] on Jan 10, 2025
  3. pshenmic commented on Jan 10, 2025

    @pshenmic
    ContributorAuthor

    Platform team checked on this and it seems there is an issue in the Platform code not allowing my purchase to be successfully executed

  4. pshenmic commented on Jan 16, 2025

    @pshenmic
    ContributorAuthor

    A GroveDB fix has been applied in the Dash Platform v1.8 that actually fixes this issue.

    dashpay/grovedb#349

    After successful protocol upgrade, I was able to successfully make a Document Purchase in the testnet network

    https://testnet.platform-explorer.com/transaction/5CA156E676FA503CA4A520831484BE73B16EBE15599BB307605DE520B623AC1A

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions