go-ethereum/accounts/abi
Felix Lange 37dd9086ec core: refactor genesis handling
This commit solves several issues concerning the genesis block:

* Genesis/ChainConfig loading was handled by cmd/geth code. This left
  library users in the cold. They could specify a JSON-encoded
  string and overwrite the config, but didn't get any of the additional
  checks performed by geth.
* Decoding and writing of genesis JSON was conflated in
  WriteGenesisBlock. This made it a lot harder to embed the genesis
  block into the forthcoming config file loader. This commit changes
  things so there is a single Genesis type that represents genesis
  blocks. All uses of Write*Genesis* are changed to use the new type
  instead.
* If the chain config supplied by the user was incompatible with the
  current chain (i.e. the chain had already advanced beyond a scheduled
  fork), it got overwritten. This is not an issue in practice because
  previous forks have always had the highest total difficulty. It might
  matter in the future though. The new code reverts the local chain to
  the point of the fork when upgrading configuration.

The change to genesis block data removes compression library
dependencies from package core.
2017-03-23 15:58:43 +01:00
..
bind core: refactor genesis handling 2017-03-23 15:58:43 +01:00
abi.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
abi_test.go accounts/abi: added testcase to unpack []uint32 2017-01-09 11:36:32 +02:00
argument.go core/vm: move Log to core/types 2017-01-06 14:15:22 +01:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00
event.go accounts/abi: add support for "anonymous" and "indexed" for events (#3464) 2016-12-22 01:51:20 +01:00
event_test.go all: update license information 2016-04-15 09:48:05 +02:00
method.go accounts/abi: Negative numbers not properly converted in ABI encoding 2016-06-06 14:27:15 +02:00
numbers.go all: unify big.Int zero checks, use common/math in more places (#3716) 2017-02-28 15:09:11 +01:00
numbers_test.go accounts/abi: fix uint64 upper range encoding. 2016-06-10 12:32:08 +03:00
packing.go all: unify big.Int zero checks, use common/math in more places (#3716) 2017-02-28 15:09:11 +01:00
reflect.go accounts/abi: differentiate between static and dynamic arrays (#3121) 2016-11-03 23:25:19 +01:00
type.go accounts/abi: fix comment spelling error 2017-01-13 11:14:47 +02:00
type_test.go accounts/abi, internal/jsre/deps: gofmt -w -s (#3636) 2017-02-03 13:32:04 +01:00