Skip to content

Instantly share code, notes, and snippets.

@hugoroussel
Created January 21, 2019 17:32
Show Gist options
  • Save hugoroussel/135ed2d3c41cadc241acf7285fbfded2 to your computer and use it in GitHub Desktop.
Save hugoroussel/135ed2d3c41cadc241acf7285fbfded2 to your computer and use it in GitHub Desktop.
Error output on go test -run Invoke_Credit -v
➜ byzcoin git:(master) ✗ go test -run Invoke_Credit -v
=== RUN TestEVMContract_Invoke_Credit
1!: ( byzcoin.TestEVMContract_Invoke_Credit: 65) - test: crediting an account
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-21 17:49:04 on address tcp://127.0.0.1:50131 with public key a4afea20f62fc75bcfac8646d57def36900e5a9e3fb6717fccc6e684cc0033d3
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:50132
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:50131 and public key a4afea20f62fc75bcfac8646d57def36900e5a9e3fb6717fccc6e684cc0033d3
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-21 17:49:04 on address tcp://127.0.0.1:50133 with public key 729b440ab0f599d84f46b793aee040c17ad47e07b72c83229d19010e97dee071
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:50134
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:50133 and public key 729b440ab0f599d84f46b793aee040c17ad47e07b72c83229d19010e97dee071
1 : ( onet.(*Server).Start: 213) - Starting server at 2019-01-21 17:49:04 on address tcp://127.0.0.1:50135 with public key 30817cf32700e7b0474742819b4b108720c80b0fac27d4e4af81f507e20e3d29
2 : ( onet.(*WebSocket).start: 104) - Starting to listen on 0.0.0.0:50136
1 : ( network.(*Router).Start: 102) - New router with address tcp://[::]:50135 and public key 30817cf32700e7b0474742819b4b108720c80b0fac27d4e4af81f507e20e3d29
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:50137: ByzCoin/CreateGenesisBlock
2 : ( skipchain.(*Service).StoreSkipBlock: 192) - Creating new skipchain with roster [tcp://127.0.0.1:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135]
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50131 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1065) - tcp://127.0.0.1:50131 new leader started polling for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:50131 starting heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:50131 started viewchangeMonitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50135 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50133 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 0
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:50135 starting heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:50135 started viewchangeMonitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( byzcoin.(*Service).updateTrieCallback: 1090) - tcp://127.0.0.1:50133 starting heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1101) - tcp://127.0.0.1:50133 started viewchangeMonitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:50137 n 1 rx 2191 tx 3936
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:50140: 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:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135] to 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( skipchain.(*Service).forwardLinkLevel0: 933) - tcp://127.0.0.1:50131 is adding forward-link level 0 to: 0->1 with roster [tcp://127.0.0.1:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135]
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50131 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 1
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:50140 n 1 rx 269 tx 2
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50131 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:50206: ByzCoin/GetProof
2 : ( byzcoin.(*Service).GetProof: 357) - Returning proof for 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6 from chain '0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b'
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:50206 n 1 rx 70 tx 3773
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:50207: ByzCoin/AddTxRequest
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50133 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 1
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50135 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 1
2 : ( byzcoin.(*Service).AddTransaction: 282) - Instruction[0]: invoke:credit
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50135 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50133 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b 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:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135] to 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( skipchain.(*Service).forwardLinkLevel0: 933) - tcp://127.0.0.1:50131 is adding forward-link level 0 to: 1->2 with roster [tcp://127.0.0.1:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135]
1!: ( byzcoin.(*contractBvm).Invoke: 120) - 0x2afd357E96a3aCbcd01615681C1D7e3398d5fb61 balance credited 1
1!: ( byzcoin.(*contractBvm).Invoke: 120) - 0x2afd357E96a3aCbcd01615681C1D7e3398d5fb61 balance credited 1
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50131 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 2
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:50207 n 1 rx 272 tx 2
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50131 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( onet.wsHandler.ServeHTTP: 199) - ws request from 127.0.0.1:50272: ByzCoin/AddTxRequest
2 : ( byzcoin.(*Service).AddTransaction: 282) - Instruction[0]: invoke:display
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50133 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 2
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50135 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 2
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50135 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50133 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50131 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50131 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
2 : ( skipchain.(*Service).StoreSkipBlock: 216) - Preparing to add block with roster [tcp://127.0.0.1:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135] to 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b
2 : ( skipchain.(*Service).forwardLinkLevel0: 933) - tcp://127.0.0.1:50131 is adding forward-link level 0 to: 2->3 with roster [tcp://127.0.0.1:50131 tcp://127.0.0.1:50133 tcp://127.0.0.1:50135]
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50131 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50135 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50133 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
2 : ( byzcoin.(*Service).updateTrieCallback: 1004) - tcp://127.0.0.1:50131 Updating transactions for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b on index 3
E : ( byzcoin.(*Service).createStateChanges: 1598) - tcp://127.0.0.1:50131 Contract bvm got Instruction instr: f2bce3912989e5ec7548ea4056d9e881c96577f5fb27f72308bbd8ebee623c07
instID: 11e31535f785e3b3ce1a56a9f5cf818365287100daaea52f5256fa10274d78b6
action: invoke:display
counters: [2]
signatures: 1
and returned error: instruction verification failed: for pk ed25519:6d2b2def052ac272a1a6b2ee100b18f9a0a27c782739d12d686d7edb4806831f, got version 2, but need 3
E : ( onet.wsHandler.ServeHTTP: 236) - Got an error while executing ByzCoin/AddTxRequest: transaction is in block, but got refused
2 : ( onet.wsHandler.ServeHTTP.func1: 163) - ws close 127.0.0.1:50272 n 1 rx 273 tx 0
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:50133 closing go-routines
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:50135 closing go-routines
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:50135 closing heartbeat timeout monitor
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:50133 closing heartbeat timeout monitor
2 : ( byzcoin.(*Service).updateTrieCallback: 1087) - tcp://127.0.0.1:50131 updating heartbeat monitor for 0f66300a007068976eb768dd3d4083997349f5fa4e1e8eb374eb873d62cb793b with window 5s
1 : ( byzcoin.(*Service).cleanupGoroutines: 1875) - tcp://127.0.0.1:50131 closing go-routines
2 : (byzcoin.(*Service).monitorLeaderFailure.func1: 1922) - tcp://127.0.0.1:50131 closing heartbeat timeout monitor
2 : ( byzcoin.(*Service).startPolling.func1: 1283) - tcp://127.0.0.1:50131 abort waiting for next block
--- FAIL: TestEVMContract_Invoke_Credit (1.93s)
require.go:765:
Error Trace: bvmContract_test.go:263
bvmContract_test.go:87
Error: Expected nil, but got: &websocket.CloseError{Code:4000, Text:"transaction is in block, but got refused"}
Test: TestEVMContract_Invoke_Credit
FAIL
exit status 1
FAIL _/Users/hugo/student_18_hugo_verex/byzcoin 1.986s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment