func createTransaction(store wallet.Store, ctx sendContext, create bool) error {
	trans, err := wallet.NewTransaction(ctx.SrcPublic, ctx.DstPublic, ctx.Currency, ctx.Amount, create)
	if err != nil {
		return err
	}

	if !create {
		err = trans.Sign(ctx.SrcPrivate)
		if err != nil {
			return err
		}
	}

	err = store.Propose(trans)
	return err // or nil
}
// creates a transaction and proposes it to the cluster
// param create: If this flag is specified, the transaction is a "create" command
// 				 meaning that the currency will be generated from nothing.
//			     Create commands with a source public or private key will error.
creates a transaction and proposes it to the cluster
param create: If this flag is specified, the transaction is a "create" command
meaning that the currency will be generated from nothing.
Create commands with a source public or private key will error.
// creates a transaction and proposes it to the cluster // param create : If this flag is specified the transaction is a " create " command // meaning that the currency will be generated from nothing . // Create commands with a source public or private key will error .
func createTransaction(store wallet.Store, ctx sendContext, create bool) error {
	trans, err := wallet.NewTransaction(ctx.SrcPublic, ctx.DstPublic, ctx.Currency, ctx.Amount, create)
	if err != nil {
		return err
	}
	if !create {
		err = trans.Sign(ctx.SrcPrivate)
		if err != nil {
			return err
		}
	}
	err = store.Propose(trans)
	return err 
}
func createTransaction ( store wallet . Store , ctx sendContext , create bool ) error { trans , err := wallet . NewTransaction ( ctx . SrcPublic , ctx . DstPublic , ctx . Currency , ctx . Amount , create ) if err != nil { return err } if ! create { err = trans . Sign ( ctx . SrcPrivate ) if err != nil { return err } } err = store . Propose ( trans ) return err }
creates a transaction and proposes it to the cluster
param create: If this flag is specified, the transaction is a "create" command
meaning that the currency will be generated from nothing.
creates a transaction and proposes it to the cluster param create : If this flag is specified the transaction is a " create " command meaning that the currency will be generated from nothing .
// or nil