cosmos-sdk/x
Cuong Manh Le 6ad84c5065
x/gov/keeper: fix flaky TestPaginatedVotesQuery (#9223)
When testing with -race, sometimes the random source generate the same
string for consecutive calls, causing duplicated voter address. So the
number of votes in DB is not 20.

To fix this, we ensure unique addresses are generated, by using a map
for tracking which one was produced, and skip the duplicated address and
generated new one. Testing with:

	go test -race -v -count=1000 -run=TestPaginatedVotesQuery

now passes.

Updates #9010
2021-04-28 17:08:42 +00:00
..
auth Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
authz x/feegrant completeness audit updates (#9177) 2021-04-27 13:37:26 +00:00
bank Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
capability fixed broken links, typos (#8783) 2021-03-09 09:51:52 +00:00
crisis Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
distribution Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
evidence Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
feegrant x/feegrant state machine audit updates (#9176) 2021-04-28 15:39:58 +00:00
genaccounts various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
genutil Fixed the --recover flag not working properly inside the init command (#9201) 2021-04-26 18:33:30 +00:00
gov x/gov/keeper: fix flaky TestPaginatedVotesQuery (#9223) 2021-04-28 17:08:42 +00:00
mint Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
params Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
simulation various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slashing Make integration test suites reusable by apps (#6711) 2021-04-23 14:49:49 -04:00
staking remove unused list (#9219) 2021-04-28 12:46:22 +00:00
upgrade bump tendermint core (#9081) 2021-04-08 20:22:00 +01:00
README.md Remove IBC from the SDK (#8735) 2021-03-04 13:11:34 +00:00

README.md

List of Modules

Here are some production-grade modules that can be used in Cosmos SDK applications, along with their respective documentation:

  • Auth - Authentication of accounts and transactions for Cosmos SDK application.
  • Authz - Authorization for accounts to perform actions on behalf of other accounts.
  • Bank - Token transfer functionalities.
  • Capability - Object capability implementation.
  • Crisis - Halting the blockchain under certain circumstances (e.g. if an invariant is broken).
  • Distribution - Fee distribution, and staking token provision distribution.
  • Evidence - Evidence handling for double signing, misbehaviour, etc.
  • Governance - On-chain proposals and voting.
  • Mint - Creation of new units of staking token.
  • Params - Globally available parameter store.
  • Slashing - Validator punishment mechanisms.
  • Staking - Proof-of-Stake layer for public blockchains.
  • Upgrade - Software upgrades handling and coordination.

To learn more about the process of building modules, visit the building modules reference documentation.

IBC

The IBC module for the SDK has moved to its own repository.