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

Get/SetTicketFee RPC and fix fee calculation in purchaseTicket #72

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Feb 29, 2016

Add simple functionality to get/set ticketFeeIncrement. This will enable users to set the per kb fees for stake ticket purchasing.

Also add fixes to purchaseTicket fee calculation. Before amountNeeded for the eligible utxos wasn't taking into account needed fees. estimateSSTxSize is now fixed to use current sizes of the 3 output types of sstx.


// sstxSubsidyCommitmentEstimate =
// version + amount + OP_RETURN OP_DATA_30
sstxSubsidyCommitmentEstimate = 2 + 8 + 30
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to count the 2 bytes for OP_RETURN OP_DATA_30 here.

@jcvernaleo
Copy link
Member

Needs a squash and a rebase but then OK by me.

@jrick
Copy link
Member

jrick commented Mar 1, 2016

New RPCs for the legacy server need help added to the rpchelp package.

@alexlyp alexlyp force-pushed the ayp_setticketfee branch 2 times, most recently from cf63392 to 6544d60 Compare March 1, 2016 15:29
@jcvernaleo
Copy link
Member

Looks good now. Just rebase and it can go in. OK

Fix estimateSSTxSize calcultion

First use EstMaxTicketFeeAmount to ensure you get enough utxos.

Then when actually calculating fees for tickets, use new consts:
sstxTicketCommitmentEstimate
sstxSubsidyCommitmentEstimate
sstxChangeOutputEstimate
@jcvernaleo jcvernaleo merged commit 4f51acb into decred:master Mar 1, 2016
@alexlyp alexlyp deleted the ayp_setticketfee branch April 4, 2016 18:29
beansgum pushed a commit to beansgum/dcrwallet that referenced this pull request Jun 10, 2021
* wallet: change struct RecentTransaction to Transaction
- Transactions.Txs slice of dcrlibwallet.Transaction to slice of Transaction

* ui: create transaction details page
- Add transaction widgets for layouts and inputs/outputs
- Handler transaction inputs widgets
- Implement click able to transaction on "overview page"
- window add `walletTransaction  *wallet.Transaction` contains transaction info

* ui: update transaction details
- Display transaction confirmations number
- Click on "View on dcrdata" button will open txn on browser
- Add click event to transaction item on transaction_page.go

* wallet: Update transaction listener
- Add "GetTransaction" to get transaction details
- Add const "BlockAttached"
- Update "txlistener.go", OnBlockAttached and OnTransactionConfirmed

* ui: Update transaction details page
- Add NavigationArrowBack icon widget to page common

*ui: Update Transaction details
- Change transaction.go -> transaction_details_page.go
- Layout the page with Navigation Tabs
- Add txsToTxsDetails at transactions.go
- Remove toTransactionDetails at widgets.go

* ui: Implement click on txs rows

Co-authored-by: Song <song@zz.local>
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.

None yet

5 participants