rpc: set default values in getutxotransfers

This commit is contained in:
Evgenii Stratonikov 2020-08-07 09:47:59 +03:00
parent fe5e5ff44a
commit 02033f8355
2 changed files with 9 additions and 2 deletions

View file

@ -1138,7 +1138,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
if asset != "" {
ps = append(ps, fmt.Sprintf("%q", asset))
}
if start != 0 {
if start >= 0 {
if start > int(e.chain.HeaderHeight()) {
ps = append(ps, strconv.Itoa(int(time.Now().Unix())))
} else {