Skip to content

Commit 8bb47eb

Browse files
committed
Merge branch 'master' into fix-raft-applied-index-out-of-range
2 parents 364eab8 + 2c7fc6c commit 8bb47eb

5 files changed

Lines changed: 13 additions & 6 deletions

File tree

core/tx_pool.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,3 +1323,8 @@ func checkAccount(fromAcct common.Address, toAcct *common.Address) error {
13231323
}
13241324
return nil
13251325
}
1326+
1327+
// helper function to return chainHeadChannel size
1328+
func GetChainHeadChannleSize() int {
1329+
return chainHeadChanSize
1330+
}

docs/Cakeshop/Getting started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ NOTE: you can use the Attach mode and/or Multi-Instance setup configuration to r
6666
```
6767
2. Navigate to path/to/cakeshop/war/data/local
6868
3. Make the following edits to the application.properties file:
69-
* set `geth.url` to the `rpcport` of your ethereum node, i.e. if your geth `rpcport` is 22001 then `geth.url=http\://localhost\:22001`
7069
* ensure `geth.auto.start` is set to `false`
7170
* ensure `geth.auto.stop` is set to `false`
7271
4. Run:
@@ -75,6 +74,9 @@ NOTE: you can use the Attach mode and/or Multi-Instance setup configuration to r
7574
$ java -jar cakeshop.war
7675
```
7776
5. Open **http://localhost:8080/** in your browser (Firefox/Chrome supported)
77+
6. The dropdown menu on the top right of the page should show "Manage Nodes" if you haven't attached to any yet. Click on that to go to the Manage Nodes page.
78+
7. Click Add Node and input the RPC url of your Quorum node (i.e. http://localhost:22000) and the path to the Tessera P2P Party Info endpoint (i.e. http://localhost:9001/partyinfo).
79+
8. Once added, click on View to attach to the node and return to the main Cakeshop page
7880
7981
### Multi-Instance Setup
8082

docs/Security/Framework/Quorum Network Security/Node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ preserve the Private key from compromise. In Ethereum Accounts Private keys are
4545

4646
!!! success "Enable Quorum Enterprise JSON-RPC authorization model to enforce atomic access controls to ledger modules functionalities (e.g personal.OpenWallet)."
4747

48-
!!! success "Implement a robust Patch Management Prgoram, and always keep the client updated to latest stable version."
48+
!!! success "Implement a robust Patch Management Program, and always keep the client updated to latest stable version."
4949

5050
!!! success "Ensure Quorum client run configuration is not started with unlocked accounts options."
5151

@@ -61,4 +61,4 @@ preserve the Private key from compromise. In Ethereum Accounts Private keys are
6161

6262
!!! success "Accounts Private Key encryption password should never be stored in the ledger host in any form."
6363

64-
!!! success "In an architecture where accounts private keys are not offloaded to ledger node clients, the encrypted private keys should be backed-up to secure environment regularly. "
64+
!!! success "In an architecture where accounts private keys are not offloaded to ledger node clients, the encrypted private keys should be backed-up to secure environment regularly. "

raft/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func NewProtocolManager(raftId uint16, raftPort uint16, blockchain *core.BlockCh
110110
joinExisting: joinExisting,
111111
blockchain: blockchain,
112112
eventMux: mux,
113-
blockProposalC: make(chan *types.Block),
113+
blockProposalC: make(chan *types.Block, 10),
114114
confChangeProposalC: make(chan raftpb.ConfChange),
115115
httpstopc: make(chan struct{}),
116116
httpdonec: make(chan struct{}),

raft/minter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func newMinter(config *params.ChainConfig, eth *RaftService, blockTime time.Dura
8989
speculativeChain: newSpeculativeChain(),
9090

9191
invalidRaftOrderingChan: make(chan InvalidRaftOrdering, 1),
92-
chainHeadChan: make(chan core.ChainHeadEvent, 1),
92+
chainHeadChan: make(chan core.ChainHeadEvent, core.GetChainHeadChannleSize()),
9393
txPreChan: make(chan core.NewTxsEvent, 4096),
9494
}
9595

@@ -213,7 +213,7 @@ func throttle(rate time.Duration, f func()) func() {
213213

214214
for range ticker.C {
215215
<-request.Out()
216-
go f()
216+
f()
217217
}
218218
}()
219219

0 commit comments

Comments
 (0)