ConsenSys MultiSigWallet security audit report performed by Callisto Security Audit Department
No critical issue, bug fixing is necessary. It is highly recommended to complete a bug bounty before use.
getTransactionIds
function return wrong result.
pragma solidity ^0.4.24; | |
contract Tree { | |
struct Node { | |
bytes32 name; | |
bytes32 parent; | |
bytes32 data; | |
bytes32[] nodes; | |
} |
No critical issue, bug fixing is necessary. It is highly recommended to complete a bug bounty before use.
getTransactionIds
function return wrong result.## installation openldap with backend mysql | |
sudo apt update && sudo apt upgrade -y && sudo reboot | |
sudo apt install mysql-server unixodbc make gcc libmysqlclient-dev unixodbc-dev groff ldap-utils | |
## mysql login as root | |
sudo mysql -u root | |
CREATE DATABASE ldap | |
CREATE USER 'ldap'@'%' IDENTIFIED BY 'S3cureP4ssw0rd$'; | |
GRANT ALL PRIVILEGES ON ldap.* TO 'ldap'@'%'; |
create database price_history_db | |
CREATE CONTINUOUS QUERY "cq_1m" ON "price_history_db" BEGIN SELECT MIN(price) as low, MAX(price) as high, FIRST(price) as open, LAST(price) as close, SUM(size) as volume INTO "price_1m" FROM "trade" GROUP BY time(1m), symbol END | |
CREATE CONTINUOUS QUERY "cq_5m" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_5m" FROM "price_1m" GROUP BY time(5m), symbol END | |
CREATE CONTINUOUS QUERY "cq_15m" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_15m" FROM "price_5m" GROUP BY time(15m), symbol END | |
CREATE CONTINUOUS QUERY "cq_1h" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_1h" FROM "price_15m" GROUP BY time(1h), symbol END | |
CREATE CONTINUOUS QUERY "cq_6h" ON "price_history_db" BEGIN SELECT |
1. git status 查看状态 | |
On branch master | |
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded. | |
(use "git pull" to update your local branch) | |
nothing to commit, working directory clean | |
2. git pull | |
Your configuration specifies to merge with the ref 'master' | |
from the remote, but no such ref was fetched. |
让两个子网内的设备可以互通访问 |
FROM golang:1.7.3 | |
RUN mkdir -p /go/src/github.com/alexellis2/jaas | |
WORKDIR /go/src/github.com/alexellis2/jaas | |
COPY ./app.go ./ | |
RUN go get -v -d | |
RUN go build |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
function computeHttpSignature(config, headerHash) { | |
var template = 'keyId="${keyId}",algorithm="${algorithm}",headers="${headers}",signature="${signature}"', | |
sig = template; | |
// compute sig here | |
var signingBase = ''; | |
config.headers.forEach(function(h){ | |
if (signingBase !== '') { signingBase += '\n'; } | |
signingBase += h.toLowerCase() + ": " + headerHash[h]; | |
}); |