• Levin Zimmermann's avatar
    NEO/py/storage: Ensure compression is always BOOL on the wire · 0e4bb572
    Levin Zimmermann authored
    Currently it can be:
    
    - nil
    - bool
    - integer
    
    In python this isn't really a problem due to '__bool__', but in Golang
    we don't have this. Yes - it would be possible to make a parser in
    Golang to decode all of these values as either True/False, but this is
    much more complex than just adjusting python to send consistent data
    types. It's also easier to describe a protocol where one parameter is
    always 'bool' instead of having a parameter that is 'bool | int | NoneType'.
    0e4bb572
client.py 12.5 KB