Skip to content

Commit

Permalink
better uploading mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
ycryptx committed Nov 27, 2023
1 parent 715c67e commit 2f084c8
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 16,815 deletions.
14 changes: 0 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,5 @@ build-map-reduce-scripts: # builds mapper and reducer scripts to be uploaded to
cat ./sequencer/bundle/map-reduce/mapper.js >> ./sequencer/scripts/mapper.js; \
cat ./sequencer/bundle/map-reduce/reducer.js >> ./sequencer/scripts/reducer.js;

generate-demo-data:
for number in {0..7} ; do \
echo $$number >> sequencer/data/run1.txt; \
done
for number in {0..63} ; do \
echo $$number >> sequencer/data/run2.txt; \
done
for number in {0..255} ; do \
echo $$number >> sequencer/data/run3.txt; \
done
for number in {0..16383} ; do \
echo $$number >> sequencer/data/run4.txt; \
done

run-demo:
grpc_cli call 0.0.0.0:8080 Demo "case: 1"
3 changes: 1 addition & 2 deletions rollup/src/myRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ export const Rollup = ZkProgram({
*/
export class MyRollupProof
extends ZkProgram.Proof(Rollup)
implements RollupProofBase
{
implements RollupProofBase {
public async merge(newProof: MyRollupProof): Promise<MyRollupProof> {
const currentState = new RollupState({
initialRoot: this.publicInput.initialRoot,
Expand Down
9 changes: 0 additions & 9 deletions sequencer/__tests__/unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
import { splitReorder } from '../src/map-reduce/utils';

describe('utils tests', () => {
it('test splitReorder', async () => {
const txs = [0, 1, 2, 3, 4, 5, 6, 7];
const reordered = splitReorder<number>(txs, 3);
expect(reordered).toEqual([0, 3, 6, 1, 4, 7, 2, 5]);
});
});
8 changes: 0 additions & 8 deletions sequencer/data/run1.txt

This file was deleted.

64 changes: 0 additions & 64 deletions sequencer/data/run2.txt

This file was deleted.

256 changes: 0 additions & 256 deletions sequencer/data/run3.txt

This file was deleted.

Loading

0 comments on commit 2f084c8

Please sign in to comment.