No | Prev State | Counterparty | Action | Post State | Notes |
---|---|---|---|---|---|
1 | OPEN | OPEN | INIT | OPEN(INIT) | N/A |
2 | OPEN | OPEN(INIT) | INIT | OPEN(INIT) | N/A |
3 | OPEN(INIT) | OPEN | INIT | OPEN(INIT) | update upgrade state and increment upgrade sequence |
4 | OPEN(INIT) | OPEN(INIT) | INIT | OPEN(INIT) | update upgrade state and increment upgrade sequence |
5 | OPEN | OPEN(INIT) | TRY | FLUSHING | N/A |
6 | OPEN(INIT) | OPEN(INIT) | TRY | FLUSHING | N/A |
7 | OPEN(INIT) | FLUSHING | ACK | FLUSHING | inflight packets exist in src |
8 | OPEN(INIT) | FLUSHING | ACK | OPEN(ERR) | our proposal is incompatible with theirs OR timeout of counterparty proposal is reached |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.13; | |
import {Test, console2} from "forge-std/Test.sol"; | |
library Lib { | |
struct Packet { | |
bytes data; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ex | |
ENCLAVE_PATH=./bin/enclave.signed.so | |
make all | |
make yrly | |
rm -rf ~/.lcp | |
./bin/lcp enclave init-key --force=true --enclave=${ENCLAVE_PATH} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# A script invalidates all github action's caches for a specified repository | |
# API documents: https://docs.github.com/rest/actions/cache | |
# | |
# Prerequisites: Install Github CLI and authenticate with your github account. | |
# For the details, you can see here: https://cli.github.com/manual/ | |
# | |
# # example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/bluele/factory-go/factory" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"archive/tar" | |
"compress/gzip" | |
"io/ioutil" | |
"log" | |
"os" | |
"path" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
from BeautifulSoup import BeautifulSoup as b | |
from urllib import quote_plus as q, unquote_plus as unq, urlencode | |
from urllib2 import build_opener, urlopen, HTTPCookieProcessor | |
from cookielib import CookieJar | |
import urlparse | |
import re | |
__author__ = 'bluele' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
__author__ = 'bluele' | |
from BeautifulSoup import BeautifulSoup as bs | |
import urllib | |
import requests | |
import re | |
class Project(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
__author__ = 'bluele' | |
from BeautifulSoup import BeautifulSoup as bs | |
import requests | |
import re | |
url = 'http://program.tv.jp.msn.com/tv.php?site=032&mode=06&category=g&area=013&template=program&sdate=20130321&lhour=7&shour=05' | |
host = 'http://program.tv.jp.msn.com/tv.php' |
NewerOlder