Skip to content

Instantly share code, notes, and snippets.

View Rinuys's full-sized avatar
🌏
Busy

Rinuys

🌏
Busy
  • SK holdings C&C
  • 46, Pangyo-ro 255beon-gil, Bundang-gu, Seongnam-si, Gyeonggi-do, Republic of Korea
View GitHub Profile
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_PRIMITIVES_BLOCK_H
#define BITCOIN_PRIMITIVES_BLOCK_H
#include <primitives/transaction.h>
#include <serialize.h>
@Rinuys
Rinuys / ClubManager.sol
Created July 31, 2018 23:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./KimChongMu.sol";
contract ClubManager is KimChongMu{ // 동아리 관리에 필요한 Contract
event ClubCreated(string _clubId); // 동아리를 만들면 부르는 event
function clubCreate(string _clubId)
public
returns(bool)
{ // club을 생성하는 함수
0x347dcA05855DF1ED50838762d459978958F57CC0
@Rinuys
Rinuys / Consensus.go
Created July 26, 2018 13:50
Ethereum Consensus
//////cut
// Ethash proof-of-work protocol constants.
var (
FrontierBlockReward *big.Int = big.NewInt(5e+18) // Block reward in wei for successfully mining a block
ByzantiumBlockReward *big.Int = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium
maxUncles = 2 // Maximum number of uncles allowed in a single block
allowedFutureBlockTime = 15 * time.Second // Max time from current time allowed for blocks, before they're considered future blocks
)
// Various error messages to mark blocks invalid. These should be private to
@Rinuys
Rinuys / gas.sol
Created July 26, 2018 12:52
ethereum gas solidity example
pragma solidity ^0.4.19;
contract A {
uint b;
function saveB(uint _b) public {
b = _b;
}
}
@Rinuys
Rinuys / header.go
Created July 26, 2018 12:50
ethereum message header
func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool) Message {
return Message{
from: from,
to: to,
nonce: nonce,
amount: amount,
gasLimit: gasLimit,
gasPrice: gasPrice,
data: data,
@Rinuys
Rinuys / ClubManager.sol
Created July 21, 2018 13:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
contract KimChongMu{
struct Club{
bytes32 id;
uint32 numberOfMembers;
mapping(address => Member) members;
string rule;
uint256 balance;
}