Use nanosecond-based requestid for convert operations
This fixes flaky tests where multiple collateralized_convert or convert operations created within the same second would get the same requestid (based on seconds since epoch), causing uniqueness constraint violations. Using time.time_ns() % (2**32) ensures unique IDs even when operations are created in quick succession, while still fitting in the uint32_t requestid field.
Loading
Please sign in to comment