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

Correctly show non-regular transactions in filtertransactions #779

Open
Nizametdinov opened this issue Mar 13, 2019 · 3 comments
Open

Correctly show non-regular transactions in filtertransactions #779

Nizametdinov opened this issue Mar 13, 2019 · 3 comments
Labels
feature New functionality rpc wallet
Milestone

Comments

@Nizametdinov
Copy link
Member

The current implementation of the filtertransactions RPC method was designed for regular and Bitcoin-style coinbase transactions. It should correctly show new coinbase and other types of transactions (or explicitly ignore some of them).

List of transaction types:

  REGULAR = 0,
  COINBASE = 1,
  DEPOSIT = 2,
  VOTE = 3,
  LOGOUT = 4,
  SLASH = 5,
  WITHDRAW = 6,
  ADMIN = 7

Example of a new coinbase transaction in the filtertransactions output:

{
  'confirmations': 100,
  'generated': True,
  'blockhash': '7bd7e92169ae5b076442c64dcb37547adb0bc124674fb9481fac177d287db0f7',
  'blockindex': 0,
  'blocktime': 1388594400,
  'txid': 'fcde5f23df7d49d30fcb039d426e016ed61ac60ca21474b4032b086704b8fbeb',
  'walletconflicts': [],
  'time': 1388594400,
  'timereceived': 1388594400,
  'bip125-replaceable': 'no',
  'abandoned': 0,
  'fee': Decimal('50.00000000'),
  'category': 'immature',
  'outputs': [{'vout': 2, 'amount': Decimal('0E-8')}],
  'amount': Decimal('0E-8')
}
@Nizametdinov Nizametdinov added feature New functionality wallet rpc labels Mar 13, 2019
@thothd thothd added this to the 1.0 milestone Mar 13, 2019
@Nizametdinov
Copy link
Member Author

Related todos:

// UNIT-E: TODO: get staked transactions

# UNIT-E TODO: check if transactions without addresses make sense

@cmihai
Copy link
Member

cmihai commented Apr 12, 2019

Regarding the first TODO : as far as I understand, in Particl the listStaked was meant to display the remotely staked transactions that are slowly being deposited on a remote node "for free" as we mine blocks. This is not a usecase that we explicitly support in Unit-e, so I'll just drop that branch entirely, if no one objects?

@Nizametdinov
Copy link
Member Author

I'm not sure listStaked was meant to be used only for cold staking. But we definitely can live without it.

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

No branches or pull requests

3 participants