File tree 6 files changed +38
-38
lines changed
nightfall-client/src/services
6 files changed +38
-38
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,8 @@ class PublicInputs {
17
17
18
18
constructor ( publicInputs ) {
19
19
// some inputs may be general numbers and some strings. We convert all to string, process and generalise.
20
- this . publicInputs = generalise (
21
- generalise ( publicInputs . flat ( Infinity ) )
22
- . all . hex ( )
23
- . map ( pi => pi . toLowerCase ( ) ) ,
24
- ) ;
25
- console . log ( 'PUBLIC INPUTS' , this . publicInputs ) ;
20
+ this . publicInputs = generalise ( publicInputs . flat ( Infinity ) ) ;
26
21
[ , this . hash ] = generalise ( sha256 ( this . publicInputs ) . limbs ( 248 , 2 ) ) ;
27
- console . log ( 'HASH' , this . hash ) ;
28
22
}
29
23
}
30
24
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export async function getLatestTree() {
40
40
const timberObjArr = await db
41
41
. collection ( TIMBER_COLLECTION )
42
42
. find ( )
43
- . sort ( { _id : - 1 } )
43
+ . sort ( { blockNumberL2 : - 1 } )
44
44
. limit ( 1 )
45
45
. toArray ( ) ;
46
46
Original file line number Diff line number Diff line change @@ -114,6 +114,12 @@ async function transfer(transferParams) {
114
114
const leafIndices = commitmentTreeInfo . map ( l => l . leafIndex ) ;
115
115
const blockNumberL2s = commitmentTreeInfo . map ( l => l . isOnChain ) ;
116
116
const roots = commitmentTreeInfo . map ( l => l . root ) ;
117
+ console . log (
118
+ 'Constructing transfer transaction with blockNumberL2s' ,
119
+ blockNumberL2s ,
120
+ 'and roots' ,
121
+ roots ,
122
+ ) ;
117
123
118
124
// public inputs
119
125
const publicInputs = new PublicInputs ( [
Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ services:
55
55
ZKP_MNEMONIC : tone shadow woman critic glare utility brass scheme edge brisk enforce champion
56
56
57
57
58
- user-local2 :
59
- extra_hosts :
60
- - ' host.docker.internal:host-gateway'
61
- environment :
62
- BLOCKCHAIN_WS_HOST : host.docker.internal
63
- BLOCKCHAIN_PORT : 8546
64
- USER_ETHEREUM_SIGNING_KEY : eed50965cbe8268a3ee0a24afc2f31c434a7d568bdff73a89783711c91ca1c67
65
- USER_ADDRESS : ' 0x4637Ee1126723e098A152f33F326fb767A6A2b8A'
66
- TEST_LENGTH : 24
67
- ERC20_NAME : ERC20Mock
68
- RECIPIENT_PKD : 0x193a37cd7973373aceae05d133f3d69ab6e7ef2f4321461173871ec7611244e2,0x27234a8721e73c9aa160154ee63d2470101fc5fd841221eeb675a91ec2d66e78
69
- ZKP_MNEMONIC :
70
- tiger victory velvet tank ritual column horse conduct athlete position soul shaft
58
+ # user-local2:
59
+ # extra_hosts:
60
+ # - 'host.docker.internal:host-gateway'
61
+ # environment:
62
+ # BLOCKCHAIN_WS_HOST: host.docker.internal
63
+ # BLOCKCHAIN_PORT: 8546
64
+ # USER_ETHEREUM_SIGNING_KEY: eed50965cbe8268a3ee0a24afc2f31c434a7d568bdff73a89783711c91ca1c67
65
+ # USER_ADDRESS: '0x4637Ee1126723e098A152f33F326fb767A6A2b8A'
66
+ # TEST_LENGTH: 24
67
+ # ERC20_NAME: ERC20Mock
68
+ # RECIPIENT_PKD: 0x193a37cd7973373aceae05d133f3d69ab6e7ef2f4321461173871ec7611244e2,0x27234a8721e73c9aa160154ee63d2470101fc5fd841221eeb675a91ec2d66e78
69
+ # ZKP_MNEMONIC:
70
+ # tiger victory velvet tank ritual column horse conduct athlete position soul shaft
Original file line number Diff line number Diff line change @@ -131,21 +131,21 @@ services:
131
131
BLOCKCHAIN_WS_HOST : blockchain1
132
132
BLOCKCHAIN_PORT : 8546
133
133
134
- user-local2 :
135
- image : ghcr.io/eyblockchain/nightfall3-user-local:latest
136
- build :
137
- dockerfile : user-local.Dockerfile
138
- context : ../../
139
- networks :
140
- - pong_network
141
- environment :
142
- OPTIMIST_HOST : optimist
143
- OPTIMIST_WS_PORT : 8080
144
- OPTIMIST_HTTP_PORT : 80
145
- CLIENT_HOST : client
146
- CLIENT_PORT : 80
147
- BLOCKCHAIN_WS_HOST : blockchain1
148
- BLOCKCHAIN_PORT : 8546
134
+ # user-local2:
135
+ # image: ghcr.io/eyblockchain/nightfall3-user-local:latest
136
+ # build:
137
+ # dockerfile: user-local.Dockerfile
138
+ # context: ../../
139
+ # networks:
140
+ # - pong_network
141
+ # environment:
142
+ # OPTIMIST_HOST: optimist
143
+ # OPTIMIST_WS_PORT: 8080
144
+ # OPTIMIST_HTTP_PORT: 80
145
+ # CLIENT_HOST: client
146
+ # CLIENT_PORT: 80
147
+ # BLOCKCHAIN_WS_HOST: blockchain1
148
+ # BLOCKCHAIN_PORT: 8546
149
149
150
150
volumes :
151
151
mongodb :
Original file line number Diff line number Diff line change 25
25
# shut down cleanly in the event of a cntl-c etc. We don't want to leave containers running
26
26
trap " exit 1" SIGHUP SIGINT SIGTERM
27
27
28
- docker-compose -f docker-compose.yml $FILE up -d --remove-orphans proposer user-local1 user-local2
29
- docker-compose logs -f proposer user-local1 user-local2
28
+ docker-compose -f docker-compose.yml $FILE up -d --remove-orphans proposer user-local1 # user-local2
29
+ docker-compose logs -f proposer user-local1 # user-local2
You can’t perform that action at this time.
0 commit comments