Commit graph

10718 commits

Author SHA1 Message Date
Julian Yap
2cf02cdcd2 Sync with upstream and remove unused variables 2019-12-24 01:15:09 -10:00
Julian Yap
43f49607e0 Remove unused variables 2019-12-24 00:10:46 -10:00
Luke Williams
f11f237f32 consensus/ubqhash: remove calcDifficultyLegacy 2019-12-21 22:03:35 +01:00
Luke Williams
213a9fe947 consensus/ubqhash: Check we have enough blocks (supprt custom ubqhash net with flux activating before block 88) 2019-12-21 20:19:27 +01:00
Luke Williams
fbc1784ff7 consensus/ubqhash: refactor CalcBaseBlockReward; Move block reward stepdown block & reward definitions to params.ChainConfig.Ubqhash.MonetaryPolicy (definable via custom genesis) 2019-12-21 16:48:56 +01:00
Luke Williams
a46055e8ce consensus/ubqhash: merge [min/max]ActualTimespan() and [min/max]ActualTimespanFlux() 2019-12-21 14:24:34 +01:00
Luke Williams
a85aa53456 Merge branch 'release/3.0' of github.com:ubiq/go-ubiq into release/3.0 2019-12-21 12:27:12 +01:00
Luke Williams
8b2745314d consensus/ubqhash: merge calcDifficultyOrig and calcDifficulty2 into calcDifficultyDigishieldV3 2019-12-21 12:06:59 +01:00
Julian Yap
401b1c86a4 Fix golint reported issue 2019-12-20 22:53:37 -10:00
Julian Yap
461310e401 Fix golint reported issue 2019-12-20 22:47:51 -10:00
Luke Williams
b17e25f2db consensus/ubqhash: Redeclare diff algo constants as diffConfig structs 2019-12-21 00:32:59 +01:00
Luke Williams
88b56df9eb consensus/ubqhash: move diff algo changeover blocks to ChainConfig.Ubqhash 2019-12-20 22:21:36 +01:00
Luke Williams
8b1cff54b9 consensus/ubqhash: add CalcBaseBlockReward & CalcUncleBlockReward (with tests), refactor accumulateRewards 2019-12-18 21:49:51 +01:00
Luke Williams
29ee8e58ba tests(consensus/ubqhash): fix TestSizeCalculations and TestConcurrentDiskCacheGeneration 2019-12-18 14:16:18 +01:00
Luke Williams
b82d77c399 tests(accounts/hd): fix Hexadecimal absolute derivation path tests 2019-11-30 22:23:14 +01:00
Luke Williams
da34923c5a params: bump version 2019-11-30 22:08:43 +01:00
Luke Williams
fc7596a30d swarm: update readme 2019-11-30 22:07:22 +01:00
Luke Williams
7d7bf861e4 puppeth: fix ascii border spacing 2019-11-26 19:30:41 +01:00
Luke Williams
aaec135b34 swarm: remove swarm (use ipfs) 2019-11-26 18:06:59 +01:00
Luke Williams
4753ebd341 openrpc: sync with updated spec 2019-11-04 12:40:37 +01:00
Luke Williams
9320e20489 update openrpc_schema 2019-09-18 20:38:17 +02:00
Luke Williams
2a31f979cb add rpc.discover (openrpc) 2019-09-14 19:39:24 +02:00
Felix Lange
a6903c886a rpc: implement full bi-directional communication (backport)
New APIs added:

    client.RegisterName(namespace, service) // makes service available to server
    client.Notify(ctx, method, args...)     // sends a notification
    ClientFromContext(ctx)                  // to get a client in handler method

This is essentially a rewrite of the server-side code. JSON-RPC
processing code is now the same on both server and client side. Many
minor issues were fixed in the process and there is a new test suite for
JSON-RPC spec compliance (and non-compliance in some cases).

List of behavior changes:

- Method handlers are now called with a per-request context instead of a
  per-connection context. The context is canceled right after the method
  returns.
- Subscription error channels are always closed when the connection
  ends. There is no need to also wait on the Notifier's Closed channel
  to detect whether the subscription has ended.
- Client now omits "params" instead of sending "params": null when there
  are no arguments to a call. The previous behavior was not compliant
  with the spec. The server still accepts "params": null.
- Floating point numbers are allowed as "id". The spec doesn't allow
  them, but we handle request "id" as json.RawMessage and guarantee that
  the same number will be sent back.
- Logging is improved significantly. There is now a message at DEBUG
  level for each RPC call served.
2019-09-14 19:12:09 +02:00
Luke Williams
5ac0cff06f fix uncle rewards 2019-09-12 23:05:53 +02:00
Luke Williams
c02ffc0dec clean up make all 2019-06-21 22:45:01 +02:00
Julian Yap
613234211c crypto/bn256/cloudflare: pull in upstream fix for Go 1.12 R18 2019-05-23 00:55:07 -07:00
Julian Yap
ebaeafb3f5 Update package 2019-05-23 00:51:00 -07:00
Julian Yap
56074d215a Version 2.3.0 2019-05-22 00:51:06 -07:00
Luke Williams
354a3344c1 ubqhash/algorithm: add blakeHasher (Sum based makeHasher) as blake2b has no Read func 2019-05-20 13:57:06 +02:00
Luke Williams
fd3a68bd34 ubqhash/consensus: refactor CalcDifficulty and accumilateRewards 2019-05-20 11:21:36 +02:00
Julian Yap
ae9861e56a Remove unused reference 2019-05-19 23:23:54 -07:00
Luke Williams
b847da0ec6 consensus/ubqhash: add api 2019-05-18 14:34:00 +02:00
Luke Williams
f599aa81a7 miner/worker: remove unused imports 2019-05-16 19:10:09 +02:00
Luke Williams
0a4c319866 core/headerchain: CalcPastMedianTime, uint64 timestamps 2019-05-16 18:00:29 +02:00
Luke Williams
cdb4f3ef5b ubqhash/consensus: refactor for uint64 timestamps 2019-05-16 17:43:15 +02:00
Luke Williams
16fc5d0b52 common/types: add StringToAddress (used in mainnet genesis definition) 2019-05-16 17:41:52 +02:00
Luke Williams
7defef6387 core/chain_makers: add CalcPastMedianTime to *fakeChainReader; remove unused misc imports 2019-05-15 18:27:01 +02:00
Luke Williams
70756bcbe6 ubqhash/consensus: ubqhash.FakeFull -> ModeFullFake 2019-05-15 10:59:39 +02:00
Luke Williams
78fb24543b core/block_validator: remove unused diff timespan vars/functions (relocated to ubqhash/consensus) 2019-05-14 21:32:25 +02:00
Luke Williams
204aa74b6d ubqhash/algorithm: re-add blake2b to imports 2019-05-14 21:24:33 +02:00
Luke Williams
58ef933d31 ubqhash/consensus: switch out defunct set library for golang-set (set -> mapset) 2019-05-14 21:18:49 +02:00
Luke Williams
9ee56d99ac params/config: repair protocol change declarations 2019-05-13 10:04:35 +02:00
Luke Williams
d19ed4a616 Merge branch 'release/2.3' of github.com:ubiq/go-ubiq into release/2.3 2019-05-13 10:00:36 +02:00
Julian Yap
f22a34f112 Merge remote-tracking branch 'upstream/release/1.8' into release/2.3 2019-04-11 23:50:35 -07:00
Péter Szilágyi
cdae1c59ab
Merge pull request #19437 from zsfelfoldi/fix-sendtx
les: fix SendTx cost calculation and verify cost table
2019-04-10 15:45:13 +03:00
Péter Szilágyi
0b00e19ed9
params, swarm: release Geth v1.8.26 (+noop Swarm v0.3.14) 2019-04-10 15:38:01 +03:00
Zsolt Felfoldi
c8d8126bd0 les: check required message types in cost table 2019-04-10 13:12:46 +02:00
Zsolt Felfoldi
0de9f32ae8 les: backported new SendTx cost calculation 2019-04-10 13:12:42 +02:00
Péter Szilágyi
14ae1246b7
Merge pull request #19416 from jmcnevin/cli-fix
Revert flag removal
2019-04-09 11:47:09 +03:00
Péter Szilágyi
dc59af8622
params, swarm: hotfix Geth v1.8.25 release to restore rpc flags 2019-04-09 10:58:00 +03:00