- May 07, 2016
-
-
Luke Champine authored
-
- Feb 01, 2016
-
-
David Vorick authored
Also add an extra test case for a number near math.MaxUint64 but not full max.
-
David Vorick authored
A future commit makes use of this function call. An error is returned if there is an overflow. Though a panic could have been called, it is believed that this method will be used heavily on currencies that could potentially be manipulated by untrusted input. Rather than require that all untrusted input be handled to check for currency-overflow causing problems, and error is returned by the currency type.
-
David Vorick authored
switch from DEBUG wrapped panics to calls to build.Critical. Also add some docstrings, and make the tests compatible with the calls to build.Critical.
-
- Sep 12, 2015
-
-
Luke Champine authored
This makes sense, symmetry-wise, and it also means that we can encode large objects (e.g. blocks) to streams without having to hold the entire byte slice in memory.
-
- Sep 11, 2015
-
-
Luke Champine authored
Previously, types implementing the SiaMarshaler interface would be automatically length-prefixed by encode. However, this makes it impossible to add Marshal/Unmarshal methods to a type without breaking compatibility; many existing types do not begin with a length prefix, e.g. structs.
-
- Aug 25, 2015
-
-
Luke Champine authored
Previously, the Currency type was marshalled as a JSON number. This caused the value to be cast to a double when the JSON was parsed by JavaScript.
-
- Aug 13, 2015
-
-
Luke Champine authored
-
- Jul 07, 2015
-
-
David Vorick authored
-
David Vorick authored
-
David Vorick authored
-
- Apr 04, 2015
-
-
David Vorick authored
-
David Vorick authored
-
David Vorick authored
-
David Vorick authored
-
Conflicts: types/currency.go
-
- Apr 03, 2015
-
-
David Vorick authored
-
- Apr 02, 2015
-
-
David Vorick authored
-
Conflicts: consensus/types_currency.go
-
David Vorick authored
-
David Vorick authored
-
David Vorick authored
-
- Mar 08, 2015
-
-
Luke Champine authored
-
- Mar 02, 2015
-
-
Luke Champine authored
-
- Feb 17, 2015
-
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
- Feb 10, 2015
-
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
Luke Champine authored
-
- Feb 07, 2015
-
-
David Vorick authored
-
- Feb 06, 2015
-
-
David Vorick authored
-
- Feb 05, 2015
-
-
Luke Champine authored
-
Luke Champine authored
-
- Feb 04, 2015
-
-
Luke Champine authored
-
Luke Champine authored
-