implemented additional test cases for claims sorting; updated changelog
This commit is contained in:
parent
b770b2de6a
commit
156b132070
2 changed files with 148 additions and 0 deletions
|
@ -67,6 +67,7 @@ at anytime.
|
|||
* refactored dht iterativeFind
|
||||
* sort dht contacts returned by `findCloseNodes` in the routing table
|
||||
* disabled Cryptonator price feed
|
||||
* `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