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

add utxo split、merge、list #52

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

superlitian
Copy link
Contributor

@superlitian superlitian commented May 16, 2022

Description

What is the purpose of the change?
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Brief of your solution

Please describe your solution to solve the issue or feature request.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

@godeamon
Copy link
Collaborator

在转账接口的 option 增加一个 num 参数,split 和 merge 都是转账交易,在调用转账接口时,指定上这个可选参数,例如如果这个参数是0,就是普通转账,如果是1就是merge,大于1就是split。在转账接口的proposal实现部分判断这个参数,然后拼装交易的 utxo input 和 output。

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 this pull request may close these issues.

2 participants