Commit graph

11956 commits

Author SHA1 Message Date
Anil Chinchawale
7ee85872ec
Merge pull request #73 from XinFinOrg/params
Params Updated
2019-03-19 12:30:36 +05:30
ronakgothi
2663e6041f Params changed | changed voterWithdrawDelay 2019-03-18 18:35:27 +05:30
ronakgothi
a8bd11f9d3 Params changed | changed candidateWithdrawDelay 2019-03-18 18:33:57 +05:30
ronakgothi
6770ce135e Params changed | changed maxBlockProducer 2019-03-18 18:29:08 +05:30
ronakgothi
35dca4a7ca Params changed | increased voterCap 2019-03-18 18:27:57 +05:30
ronakgothi
117f02b3b6 Params changed | increased validatorCap 2019-03-18 18:26:45 +05:30
Anil Chinchawale
d4be1fd766
Merge pull request #72 from XinFinOrg/stable
Version pump to v0.4.0
2019-03-18 16:28:48 +05:30
Anil Chinchawale
147b94cf77
Merge pull request #71 from AnilChinchawale/master
XinFin Delegated Proof of Stake
2019-03-18 16:25:45 +05:30
AnilChinchawale
6f850d5255 Version pump to v0.4.0 2019-03-18 15:14:51 +05:30
AnilChinchawale
ed6533e092 Added "xdc" prefix in address 2019-03-17 16:14:42 +05:30
AnilChinchawale
f272b5d8cb Change prefix to xdc 2019-03-17 16:14:04 +05:30
AnilChinchawale
239f9702ce Change address in keystore 2019-03-17 16:13:27 +05:30
AnilChinchawale
9b13f2279e Update command prompts 2019-03-16 16:13:35 +05:30
AnilChinchawale
bc31e1e8f0 Change prefix to xdc
Add prefix to Str method of Address.
Make jsre works.
2019-03-16 16:12:41 +05:30
AnilChinchawale
9fb068a25a Change prefix to xdc
Add prefix to Str method of Address.
Make jsre works.
2019-03-16 16:12:33 +05:30
AnilChinchawale
6d7b0b3949 Version pump to v0.3.0 2019-03-16 16:02:56 +05:30
AnilChinchawale
a638d2adc0 Minor error fixed. 2019-03-16 16:02:10 +05:30
AnilChinchawale
bf626ddc95 Core Updated 2019-03-16 16:00:19 +05:30
AnilChinchawale
7de9cee4fb Trezor data updated 2019-03-14 15:59:48 +05:30
AnilChinchawale
8e89efe6a9 File Updated | XDPoS Consensus updated 2019-03-14 15:59:10 +05:30
AnilChinchawale
153c8ef49d File Updated | transaction & constants 2019-03-14 15:58:42 +05:30
AnilChinchawale
c3c32ce113 Updated files. 2019-03-12 15:57:58 +05:30
AnilChinchawale
22732d57fb Minor Changes added 2019-03-12 15:57:12 +05:30
AnilChinchawale
6d1685646f Updated secp256k1 2019-03-12 15:55:49 +05:30
AnilChinchawale
85302180ec web3 updated 2019-03-12 15:55:18 +05:30
AnilChinchawale
aa6b2e0323 Enable SendTransaction over RPC. 2019-03-10 15:54:37 +05:30
AnilChinchawale
3f900e50a2 Version pump to v0.2.0 2019-03-10 15:52:21 +05:30
AnilChinchawale
601c07b066 swarm api updated 2019-03-10 15:51:43 +05:30
AnilChinchawale
2ee661d950 Changes added in trie 2019-03-10 15:51:18 +05:30
AnilChinchawale
f2f6616cff Final Vendor updated. 2019-03-08 15:51:30 +05:30
AnilChinchawale
3e3ae65224 Vendor Added 2019-03-08 15:51:11 +05:30
AnilChinchawale
ef775a7cb3 Vendor Updated | zerrors_*.go 2019-03-08 15:50:42 +05:30
AnilChinchawale
11b4b73cd8 Vendor Updated 2019-03-08 15:50:03 +05:30
AnilChinchawale
d8a786fc7a fixed utils contract 2019-03-06 15:53:30 +05:30
parmarrushabh
c6886f92f2 removed kyc smart contract for stable version 2019-03-05 15:44:26 +05:30
parmarrushabh
b493f4b6ca hot fix 2019-03-03 15:36:33 +05:30
MestryOmkar
1861c13bcd fetcher-hotfix 2019-03-02 15:10:35 +05:30
MestryOmkar
10694b2c6f fixed bypass unittest 2019-02-27 15:02:33 +05:30
parmarrushabh
6adee64867 handle SignHash error 2019-02-27 14:58:16 +05:30
AnilChinchawale
6af0f56740 Allow custom maxpeers 2019-02-26 14:39:47 +05:30
parmarrushabh
0b6a7ed1ad updated smartcontract issue 2019-02-24 17:50:28 +05:30
parmarrushabh
1b13b3a305 hot fix 2019-02-24 17:40:26 +05:30
Péter Szilágyi
c942700427
Merge pull request #19029 from holiman/update1.8
Update1.8
2019-02-20 10:48:12 +02:00
Péter Szilágyi
cde35439e0
params, swarm: release Geth v1.8.23, Swarm v0.3.11 2019-02-20 10:42:02 +02:00
Anton Evangelatov
4f908db69e
cmd/utils: allow for multiple influxdb tags (#18520)
This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag.

This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).

(cherry picked from commit 21acf0bc8d)
2019-02-19 17:34:48 +01:00
Jerzy Lasyk
320d132925
swarm/metrics: Send the accounting registry to InfluxDB (#18470)
(cherry picked from commit f28da4f602)
2019-02-19 17:34:42 +01:00
lash
7ae2a7bd84
swarm: Reinstate Pss Protocol add call through swarm service (#19117)
* swarm: Reinstate Pss Protocol add call through swarm service

* swarm: Even less self

(cherry picked from commit d88c6ce6b0)
2019-02-19 13:18:10 +01:00
Kiel barry
fd34bf594c
contracts/*: golint updates for this or self warning
(cherry picked from commit 53b823afc8)
2019-02-19 13:18:02 +01:00
holisticode
996230174c
cmd/swarm/swarm-smoke: Trigger chunk debug on timeout (#19101)
* cmd/swarm/swarm-smoke: first version trigger has-chunks on timeout

* cmd/swarm/swarm-smoke: finalize trigger to chunk debug

* cmd/swarm/swarm-smoke: fixed httpEndpoint for trigger

* cmd/swarm/swarm-smoke: port

* cmd/swarm/swarm-smoke: ws not rpc

* cmd/swarm/swarm-smoke: added debug output

* cmd/swarm/swarm-smoke: addressed PR comments

* cmd/swarm/swarm-smoke: renamed track-timeout and track-chunks

(cherry picked from commit 62d7688d0a)
2019-02-19 13:11:53 +01:00
Ferenc Szabo
8857707606
p2p, swarm: fix node up races by granular locking (#18976)
* swarm/network: DRY out repeated giga comment

I not necessarily agree with the way we wait for event propagation.
But I truly disagree with having duplicated giga comments.

* p2p/simulations: encapsulate Node.Up field so we avoid data races

The Node.Up field was accessed concurrently without "proper" locking.
There was a lock on Network and that was used sometimes to access
the  field. Other times the locking was missed and we had
a data race.

For example: https://github.com/ethereum/go-ethereum/pull/18464
The case above was solved, but there were still intermittent/hard to
reproduce races. So let's solve the issue permanently.

resolves: ethersphere/go-ethereum#1146

* p2p/simulations: fix unmarshal of simulations.Node

Making Node.Up field private in 13292ee897
broke TestHTTPNetwork and TestHTTPSnapshot. Because the default
UnmarshalJSON does not handle unexported fields.

Important: The fix is partial and not proper to my taste. But I cut
scope as I think the fix may require a change to the current
serialization format. New ticket:
https://github.com/ethersphere/go-ethereum/issues/1177

* p2p/simulations: Add a sanity test case for Node.Config UnmarshalJSON

* p2p/simulations: revert back to defer Unlock() pattern for Network

It's a good patten to call `defer Unlock()` right after `Lock()` so
(new) error cases won't miss to unlock. Let's get back to that pattern.

The patten was abandoned in 85a79b3ad3,
while fixing a data race. That data race does not exist anymore,
since the Node.Up field got hidden behind its own lock.

* p2p/simulations: consistent naming for test providers Node.UnmarshalJSON

* p2p/simulations: remove JSON annotation from private fields of Node

As unexported fields are not serialized.

* p2p/simulations: fix deadlock in Network.GetRandomDownNode()

Problem: GetRandomDownNode() locks -> getDownNodeIDs() ->
GetNodes() tries to lock -> deadlock

On Network type, unexported functions must assume that `net.lock`
is already acquired and should not call exported functions which
might try to lock again.

* p2p/simulations: ensure method conformity for Network

Connect* methods were moved to p2p/simulations.Network from
swarm/network/simulation. However these new methods did not follow
the pattern of Network methods, i.e., all exported method locks
the whole Network either for read or write.

* p2p/simulations: fix deadlock during network shutdown

`TestDiscoveryPersistenceSimulationSimAdapter` often got into deadlock.
The execution was stuck on two locks, i.e, `Kademlia.lock` and
`p2p/simulations.Network.lock`. Usually the test got stuck once in each
20 executions with high confidence.

`Kademlia` was stuck in `Kademlia.EachAddr()` and `Network` in
`Network.Stop()`.

Solution: in `Network.Stop()` `net.lock` must be released before
calling `node.Stop()` as stopping a node (somehow - I did not find
the exact code path) causes `Network.InitConn()` to be called from
`Kademlia.SuggestPeer()` and that blocks on `net.lock`.

Related ticket: https://github.com/ethersphere/go-ethereum/issues/1223

* swarm/state: simplify if statement in DBStore.Put()

* p2p/simulations: remove faulty godoc from private function

The comment started with the wrong method name.

The method is simple and self explanatory. Also, it's private.
=> Let's just remove the comment.

(cherry picked from commit 50b872bf05)
2019-02-19 13:11:52 +01:00