Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup protocol #2321

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions byzcoin/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ func TestClient_Streaming(t *testing.T) {
require.NoError(t, err)
_, err = c.AddTransaction(tx)
require.NoError(t, err)

// sleep for a block interval so we create multiple blocks
time.Sleep(msg.BlockInterval)
}
}()

Expand Down Expand Up @@ -363,19 +360,15 @@ type corruptedService struct {

func newTestService(c *onet.Context) (onet.Service, error) {
s := &Service{
ServiceProcessor: onet.NewServiceProcessor(c),
contracts: newContractRegistry(),
txBuffer: newTxBuffer(),
storage: &bcStorage{},
darcToSc: make(map[string]skipchain.SkipBlockID),
stateChangeCache: newStateChangeCache(),
stateChangeStorage: newStateChangeStorage(c),
heartbeatsTimeout: make(chan string, 1),
closeLeaderMonitorChan: make(chan bool, 1),
heartbeats: newHeartbeats(),
viewChangeMan: newViewChangeManager(),
streamingMan: streamingManager{},
closed: true,
ServiceProcessor: onet.NewServiceProcessor(c),
contracts: newContractRegistry(),
storage: &bcStorage{},
darcToSc: make(map[string]skipchain.SkipBlockID),
stateChangeCache: newStateChangeCache(),
stateChangeStorage: newStateChangeStorage(c),
viewChangeMan: newViewChangeManager(),
streamingMan: streamingManager{},
closed: true,
}

cs := &corruptedService{Service: s}
Expand Down
242 changes: 0 additions & 242 deletions byzcoin/collect_tx.go

This file was deleted.

109 changes: 0 additions & 109 deletions byzcoin/collect_tx_test.go

This file was deleted.

Loading