Commit Graph

5 Commits

Author SHA1 Message Date
Dave Collins
fa75c0b7b8
mining: Remove high prio/free tx mining code.
This removes the block template generation code related to
prioritization of low-fee/free transactions.

The following is an overview of the changes:

- Remove logic to select sort method based on the block priority size
  from block template generation
- Remove now unused mining.MinHighPriority constant
- Remove now unused mining.Policy.BlockPrioritySize field
- Remove now unused txPQByStakeAndFeeAndThenPriority func
- Remove tests related to txPQByStakeAndFeeAndThenPriority
2022-09-28 12:49:31 -05:00
Ryan Staudt
c3680d0ce0 blockchain/stake: Start v5 module dev cycle.
Upcoming changes constitute breaking public API changes to the
blockchain/stake module, therefore, this follows the process for
introducing major API breaks which consists of:

- Bump the major version in the go.mod of the affected module if not
  already done since the last release tag
- Add a replacement to the go.mod in the main module if not already done
  since the last release tag
- Update all imports in the repo to use the new major version as
  necessary
- Make necessary modifications to allow all other modules to use the new
  version in the same commit
- Repeat the process for any other modules the require a new major as a
  result of consuming the new major(s)
2022-05-08 11:47:32 -05:00
Ryan Staudt
56f84d16b2 mining: Add auto revocation priority to tx queue.
This adds a new priority for automatic revocations to the tx priority
queue.  With the automatic ticket revocations agenda, revocations are
required for all tickets that are becoming missed or expired as of the
block being created.  This update ensures that those revocations are
treated as the second highest priority after votes in the priority
queue, ahead of other non-mandatory transactions.
2021-09-06 08:48:19 -05:00
Donald Adu-Poku
06fac5722a multi: Start blockchain/stake v4 module dev cycle.
This updates the blockchain/stake module version
to v4 and updates import and dep sites.
2020-12-16 16:30:24 -06:00
Ryan Staudt
bac4b521ca mining: Move txPriorityQueue to a separate file.
This moves txPriorityQueue and the related logic to a separate file,
mining/txpriorityqueue.go.  Additionally, it moves the txPriorityQueue
tests to mining/txpriorityqueue_tests.go.

This is part of an effort to split mining into several files to make the
package easier to navigate, and in preparation of adding additional test
coverage.
2020-10-16 15:13:57 -05:00