implemented additional test cases for claims sorting; updated changelog
This commit is contained in:
parent
a7a5bb8887
commit
3d0f74c8ce
2 changed files with 148 additions and 0 deletions
|
@ -52,6 +52,7 @@ at anytime.
|
|||
* download blockchain headers from s3 before starting the wallet when the local height is more than `s3_headers_depth` (a config setting) blocks behind
|
||||
* track successful reflector uploads in sqlite to minimize how many streams are attempted by auto re-reflect
|
||||
* increase the default `auto_re_reflect_interval` to a day
|
||||
* `claim_list` and `claim_list_mine` in Daemon `return` sorted results
|
||||
|
||||
### Added
|
||||
* virtual kademlia network and mock udp transport for dht integration tests
|
||||
|
|
|
@ -48,6 +48,153 @@
|
|||
"txid": "fdsafa"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "sort by height",
|
||||
"results": [
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 3,
|
||||
"name": "res",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 2,
|
||||
"name": "res",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
{
|
||||
"claim_id": "ccc",
|
||||
"height": 1,
|
||||
"name": "res",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"claim_id": "ccc",
|
||||
"height": 2,
|
||||
"name": "res",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"claim_id": "ccc",
|
||||
"height": 3,
|
||||
"name": "res",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "sort by name",
|
||||
"results": [
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res3",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res2",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res2",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res3",
|
||||
"claim_id": "ccc",
|
||||
"nout": 0,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "sort by outpoint",
|
||||
"results": [
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 2,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 1,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 3,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 1,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 2,
|
||||
"txid": "aecfaewcfa"
|
||||
},
|
||||
{
|
||||
"height": 1,
|
||||
"name": "res1",
|
||||
"claim_id": "ccc",
|
||||
"nout": 3,
|
||||
"txid": "aecfaewcfa"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue