Skip to content

Instantly share code, notes, and snippets.

@hugoroussel
Created January 24, 2019 10:13
Show Gist options
  • Save hugoroussel/4cff41c64784d59c08e936204b0f605b to your computer and use it in GitHub Desktop.
Save hugoroussel/4cff41c64784d59c08e936204b0f605b to your computer and use it in GitHub Desktop.
=== RUN TestEVMContract_Invoke_Credit
1!: ( byzcoin.TestEVMContract_Invoke_Credit: 63) - test: crediting an account
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-24 11:02:53 on address tcp://127.0.0.1:52909 with public key 10019de26075fb5009d31849d3e3cb0c925264576a23ddb152e652bf144c8898
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:52910
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:52909 and public key 10019de26075fb5009d31849d3e3cb0c925264576a23ddb152e652bf144c8898
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-24 11:02:53 on address tcp://127.0.0.1:52911 with public key 32ab31d7fd060584fd7ebeff6643f61ad4a5c48e8d9978cebdb904cb33c8ffe9
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:52912
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:52911 and public key 32ab31d7fd060584fd7ebeff6643f61ad4a5c48e8d9978cebdb904cb33c8ffe9
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-24 11:02:53 on address tcp://127.0.0.1:52913 with public key 7dd8018c7dc8d99ff47dcfeda2f8d379eac8132f398fccf9216e297ffdf8512e
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:52914
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:52913 and public key 7dd8018c7dc8d99ff47dcfeda2f8d379eac8132f398fccf9216e297ffdf8512e
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:52915: ByzCoin/CreateGenesisBlock
2 : ( skipchain.(*Service).StoreSkipBlock: 192) - Creating new skipchain with roster [tcp://127.0.0.1:52909 tcp://127.0.0.1:52911 tcp://127.0.0.1:52913]
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52909 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1065) - tcp://127.0.0.1:52909 new leader started polling for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:52909 starting heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:52909 started viewchangeMonitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52911 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52913 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:52911 starting heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:52911 started viewchangeMonitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:52913 starting heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:52913 started viewchangeMonitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:52915 n 1 rx 2191 tx 3936
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:52918: ByzCoin/AddTxRequest
2 : ( byzcoin.(*Service).AddTransaction: 282) - Instruction[0]: spawn:bvm
2 : ( skipchain.(*Service).StoreSkipBlock: 216) - Preparing to add block with roster [tcp://127.0.0.1:52909 tcp://127.0.0.1:52911 tcp://127.0.0.1:52913] to 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( skipchain.(*Service).forwardLinkLevel0: 933) - tcp://127.0.0.1:52909 is adding forward-link level 0 to: 0->1 with roster [tcp://127.0.0.1:52909 tcp://127.0.0.1:52911 tcp://127.0.0.1:52913]
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52909 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 1
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:52918 n 1 rx 269 tx 2
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:52909 updating heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:52984: ByzCoin/GetProof
2 : ( byzcoin.(*Service).GetProof: 357) - Returning proof for ec463085280142c5af24873b22bf8aa926f0168c22fb7fd0a6ee886beec5cc27 from chain '552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9'
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:52984 n 1 rx 70 tx 3773
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:52985: ByzCoin/AddTxRequest
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52911 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 1
2 : ( byzcoin.(*Service).AddTransaction: 282) - Instruction[0]: invoke:credit
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:52913 Updating transactions for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 on index 1
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:52911 updating heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:52913 updating heartbeat monitor for 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9 with window 5s
1!: ( byzcoin.(*contractBvm).Invoke: 120) - 0x2afd357E96a3aCbcd01615681C1D7e3398d5fb61 balance credited 1
2 : ( skipchain.(*Service).StoreSkipBlock: 216) - Preparing to add block with roster [tcp://127.0.0.1:52909 tcp://127.0.0.1:52911 tcp://127.0.0.1:52913] to 552af131291e20b74d18de02216c1c22fec426bdf6373fe054b90e994eb87de9
2 : ( skipchain.(*Service).forwardLinkLevel0: 933) - tcp://127.0.0.1:52909 is adding forward-link level 0 to: 1->2 with roster [tcp://127.0.0.1:52909 tcp://127.0.0.1:52911 tcp://127.0.0.1:52913]
1!: ( byzcoin.(*contractBvm).Invoke: 120) - 0x2afd357E96a3aCbcd01615681C1D7e3398d5fb61 balance credited 1
1!: ( byzcoin.(*contractBvm).Invoke: 120) - 0x2afd357E96a3aCbcd01615681C1D7e3398d5fb61 balance credited 1
2 : ( byzcoin.(*Service).verifySkipBlock: 1486) - tcp://127.0.0.1:52913 Trie root doesn't verify
2 : (skipchain.(*Service).bftForwardLinkLevel0.func1: 1100) - verification function failed: github.com/dedis/cothority/byzcoin.(*Service).verifySkipBlock-fm 14b74055-89f3-5031-aa63-a2839dbfdbdd
2 : ( byzcoin.(*Service).verifySkipBlock: 1486) - tcp://127.0.0.1:52911 Trie root doesn't verify
2 : (skipchain.(*Service).bftForwardLinkLevel0.func1: 1100) - verification function failed: github.com/dedis/cothority/byzcoin.(*Service).verifySkipBlock-fm 14b74055-89f3-5031-aa63-a2839dbfdbdd
E : ( onet.(*Overlay).CreateProtocol.func1: 557) - SkipchainBFTNew_cosi_prep.Dispatch() created in service Skipchain returned error too many refusals (got 2), the threshold of 3 cannot be achieved
2 : ( byzcoinx.(*ByzCoinX).Dispatch: 152) - Signature verification failed on root during the prepare phase with error: no signature provided
E : ( skipchain.(*Service).forwardLinkLevel0: 947) - tcp://127.0.0.1:52909 startBFT failed with couldn't sign forward-link
E : ( byzcoin.(*Service).startPolling.func1: 1386) - tcp://127.0.0.1:52909 couldn't create new block: Couldn't get forward signature on block: couldn't sign forward-link
E : ( onet.wsHandler.ServeHTTP: 236) - Got an error while executing ByzCoin/AddTxRequest: transaction didn't get included after 20s (2 * t_block * 20)
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:52985 n 1 rx 272 tx 0
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:52913 closing go-routines
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:52909 closing go-routines
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:52911 closing go-routines
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:52913 closing heartbeat timeout monitor
2 : ( byzcoin.(*Service).startPolling.func1: 1283) - tcp://127.0.0.1:52909 abort waiting for next block
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:52909 closing heartbeat timeout monitor
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:52911 closing heartbeat timeout monitor
--- FAIL: TestEVMContract_Invoke_Credit (20.80s)
require.go:765:
Error Trace: bvmContract_test.go:285
bvmContract_test.go:84
Error: Expected nil, but got: &websocket.CloseError{Code:4000, Text:"transaction didn't get included after 20s (2 * t_block * 20)"}
Test: TestEVMContract_Invoke_Credit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment