You can test it. When there are tickets in your mempool, restart dcrd and check. Does the ticket db handle this? AFAIK, it doesn't. Thanks for the patch. I'm new to go, so I certainly won't judge or demand most idiomatic solution, although I want to learn to do things that way. Note that slices are reference types, so when s is sorted in a function, it's sorted in the caller because the underlying buffer isn't copied, even without a pointer. However, ops that rewrite header are different.