Commit Graph

6 Commits

Author SHA1 Message Date
Patrick Nagurny c86f1a9c28 add getDifficulty method 2015-09-08 14:26:42 -04:00
Braydon Fuller a50fccef4d Changes behavior of `toJSON` to work as expected with `JSON.stringify`
- see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior
- Updates CONTRIBUTING with changes to Stardard Methods
- Aliases toJSON for toObject
- Removes all `fromJSON` methods, and many cases replaces with `fromObject`
- Constructors expect an object parsed via `JSON.parse` for JSON input
2015-08-13 10:46:08 -04:00
Braydon Fuller 496edf9109 Check for consitency with block header argument hash and calculated hash. 2015-08-12 20:45:57 -04:00
Braydon Fuller 74dee1fda7 Include hash in toObject/toJSON results. 2015-08-11 11:42:23 -04:00
Manuel Araoz 74e285dadd fix imports for block tests 2015-05-23 16:44:11 -03:00
Manuel Araoz 6e49ed0e40 reorganize block test files 2015-05-20 14:42:48 -03:00