-
Agree on a plan to set up a testnet using the Cosmos SDK v0.34.0 release, along with mainnet conditions, plus transfer enablement and increased block size, as a testing ground.
-
After this proposal is passed and after successful testing, and after the software Git hash for v0.34.0 has been finalized, conduct a second proposal which includes the specific Git hash, using expedited rules to determine acceptance.
This file contains 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
STACK: | |
%v goroutine 22 [running]: | |
command-line-arguments.timeoutWaitGroup(0xc4200f6b40, 0x7, 0xc4201d1180, 0xc420058bc0, 0x7, 0x7) | |
/gocode/src/github.com/tendermint/tendermint/consensus/reactor_test.go:416 +0x4b8 | |
command-line-arguments.waitForBlockWithUpdatedValsAndValidateIt(0xc4200f6b40, 0x7, 0xc420af8d80, 0xc420adc780, 0x7, 0x7, 0xc420058bc0, 0x7, 0x7) | |
/gocode/src/github.com/tendermint/tendermint/consensus/reactor_test.go:347 +0xe8 | |
command-line-arguments.TestReactorValidatorSetChanges(0xc4200f6b40) | |
/gocode/src/github.com/tendermint/tendermint/consensus/reactor_test.go:231 +0x710 | |
testing.tRunner(0xc4200f6b40, 0x18aa860) |
This file contains 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
diff --git a/codec.go b/codec.go | |
index f3f2eaf..35a6c3a 100644 | |
--- a/codec.go | |
+++ b/codec.go | |
@@ -219,7 +219,7 @@ func (cdc *Codec) getTypeInfoFromPrefix_rlock(iinfo *TypeInfo, pb PrefixBytes) ( | |
return | |
} | |
if len(infos) > 1 { | |
- err = fmt.Errorf("Conflicting concrete types registered for %X: e.g. %v and %v.", pb) | |
+ err = fmt.Errorf("Conflicting concrete types registered for %X: e.g. %v and %v.", pb, infos[0].Type, infos[1].Type) |
This file contains 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
``` | |
sdk.ChainDecorators( | |
... | |
customTxParseDecorator, | |
auth.Decorator(perms.SetFn("AUTH")), | |
coins.Decorator(perms.Get("AUTH"), perms.SetFn("COINS")), // set ctx.Set(coinstore.coinsPerm, coinstore.NewCoinStore(ms.GetKVStore("main"))) | |
fees.Decorator(perms.Get("COINS")) // ctx.Get(coinstore.coinsPerm).(CoinStore), | |
sketchy.Decorator, // doesn't have authKey | |
... | |
.WithHandler( |
This document is now a Github issue: golang/go#23157
This file contains 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
* state/execution.go | |
- // ApplyBlock executes the block, then commits and updates the mempool atomically | |
becomes... | |
// ApplyBlock executes the block, updates state w/ ABCI responses, then commits and updates the mempool atomically, then saves state | |
- execBlockOnProxyApp should return relevant ABCI responses | |
- Between s.ExecBlock and s.CommitStateUpdateMempool, add a function to save ABI responses, 's.SaveABCIResponses'. Make the ABCI responses a simple field of state.State. Make it a pointer, and have State.Copy() just copy the pointer -- ABCI responses are not mutable. | |
- Move call to 's.SetBlockAndValidators' to between s.SaveABCIResponses and s.CommitStateUpdateMempool. Also move calls to 'updateValidators' and 'IncrementAccum' into s.SetBlockAndValidators. Change s.SetBlockAndValidators to include ABCI responses as arguments. | |
- After s.CommitStateUpdateMempool, save the state. | |
* In state/state.go | |
- Change 'updated at end of ExecBlock' to 'updated at end of SetBlockAndValidators' |
This file contains 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
// A Basecoin user account | |
type Account struct { | |
PubKey crypto.PubKey | |
Sequence int | |
Balance Coins | |
} | |
type Coin struct { | |
Denom string // e.g. "BTC", "ATOM" | |
Amount int64 |
This file contains 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
type Plugin interface { | |
// Name of this plugin, should be short. | |
Name() string | |
// Run a transaction from ABCI DeliverTx | |
RunTx(store KVStore, ctx CallContext, txBytes []byte) (res abci.Result) | |
// Other ABCI message handlers | |
SetOption(store KVStore, key string, value string) (log string) | |
InitChain(store KVStore, vals []*abci.Validator) |
This file contains 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
{"time":"2016-10-16T20:57:31.752Z","msg":[1,{"height":47595,"round":0,"step":"RoundStepNewHeight"}]} | |
{"time":"2016-10-16T20:57:32.780Z","msg":[3,{"duration":999834609,"height":47595,"round":0,"step":1}]} | |
{"time":"2016-10-16T20:57:32.780Z","msg":[1,{"height":47595,"round":0,"step":"RoundStepPropose"}]} | |
{"time":"2016-10-16T20:57:33.174Z","msg":[2,{"msg":[20,{"ValidatorIndex":1,"Vote":{"height":47595,"round":0,"type":1,"block_hash":"D3645CB2EF4FB03DCC7FB77C5CEE969765EF78BF","block_parts_header":{"total":13,"hash":"C28C08047DABB2E345B09BC77F0384453E3BED7C"},"signature":"E3875E3286F0581BA303C357FCEA9AF20255669A0B83C6318D11D220F6FDC9743F41BF1007B6C9C008C9F44DB1B7F8BE404F672C57DEC5BD26E5175A6F27230C"}}],"peer_key":"AC86D51269961BAAC1FCB58709E2499CD14CC4845DEF847D58A4BF73C578BA9B"}]} | |
{"time":"2016-10-16T20:57:33.183Z","msg":[2,{"msg":[20,{"ValidatorIndex":2,"Vote":{"height":47595,"round":0,"type":1,"block_hash":"D3645CB2EF4FB03DCC7FB77C5CEE969765EF78BF","block_parts_header":{"total":13,"hash":"C28C08047DABB2E345B09BC |
This is gmaxwell's 2-of-2 escrow example, adapted to Electrum and to a lesser extent, GFM.
Archey wants to pay Bertha 0.001 BTC for a Twitter Platinum invite, but prevent Bertha from cheating him. Archey selects Iceland to act as