Skip to content

For transactions with many inputs, data is lost in the database #17

@baryon

Description

@baryon

the following transactions


      {
        txId: 'e00118d7a414034c6e74a37d79621c6c3df62f70efa5164ef6bbdb44b2ee6f55',
        height: 683929
      },

      {
        txId: '7db9642fe57bf735ac8a93236b90b538fb81ae0f58fc4920a8a075452a8824d9',
        height: 685004
      },
      {
        txId: 'b6f60f9258a942c72b2ec6f3e3177e24830cbe92fc9dda2d0d3eb406d1582d13',
        height: 685004
      },

      {
        txId: '90cd5e990a8d4d13481a67470e416d9daecd688729ea5fde7f78d151af827bc2',
        height: 685007
      },

 

Query Code

    const addressList=['1Pwmd4RCoTbYP6tLWVoDcys1GW5chsve8C']
    
    const queryBitbus: any = {
      q: {
        find: {
          $or: [{ 'out.e.a': { $in: addressList } }, { 'in.e.a': { $in: addressList } }],
          'blk.i': { $gt: 683000 },
        },
        sort: { 'blk.i': 1 },
        project: { tx: 1, blk: 1, i: 1 },
      },
    };

the results of query don't include lost txs.

test timestamp: 2021/05/17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions