All of the skynet objects were only getting the zlib header because the defer writer.Close() wasn't triggering till after the skynet upload call. This ensures the buffer is always called by pulling it out into its own method, used in both chaintree and sia stores, and then adds a test (which fails without the close).
All of the skynet objects were only getting the zlib header because the
defer writer.Close()
wasn't triggering till after the skynet upload call. This ensures the buffer is always called by pulling it out into its own method, used in both chaintree and sia stores, and then adds a test (which fails without the close).